[welcomeq] add Markdown example
use the release_notes.qml example, move from Richtext to Markdown
This commit is contained in:
parent
903fed07a9
commit
283c1f92bb
@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Calamares - <https://calamares.io> ===
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
||||||
*
|
*
|
||||||
* SPDX-FileCopyrightText: 2020 Anke Boersma <demm@kaosx.us>
|
* SPDX-FileCopyrightText: 2020 - 2024 Anke Boersma <demm@kaosx.us>
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* Calamares is Free Software: see the License-Identifier above.
|
* Calamares is Free Software: see the License-Identifier above.
|
||||||
@ -37,32 +37,36 @@ Rectangle {
|
|||||||
y: 8
|
y: 8
|
||||||
width: 640
|
width: 640
|
||||||
font.pointSize: 14
|
font.pointSize: 14
|
||||||
textFormat: Text.RichText
|
textFormat: Text.MarkdownText
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
activeFocusOnPress: false
|
activeFocusOnPress: false
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
text: qsTr("<h3>%1</h3>
|
text: qsTr("### %1
|
||||||
<p>This an example QML file, showing options in RichText with Flickable content.</p>
|
This an example QML file, showing options in Markdown with Flickable content.
|
||||||
|
|
||||||
<p>QML with RichText can use HTML tags, Flickable content is useful for touchscreens.</p>
|
QML with RichText can use HTML tags, with Markdown it uses the simple Markdown syntax, Flickable content is useful for touchscreens.
|
||||||
|
|
||||||
<p><b>This is bold text</b></p>
|
**This is bold text**
|
||||||
<p><i>This is italic text</i></p>
|
|
||||||
<p><u>This is underlined text</u></p>
|
|
||||||
<p><center>This text will be center-aligned.</center></p>
|
|
||||||
<p><s>This is strikethrough</s></p>
|
|
||||||
|
|
||||||
<p>Code example:
|
*This is italic text*
|
||||||
<code>ls -l /home</code></p>
|
|
||||||
|
|
||||||
<p><b>Lists:</b></p>
|
_This is underlined text_
|
||||||
<ul>
|
|
||||||
<li>Intel CPU systems</li>
|
|
||||||
<li>AMD CPU systems</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<p>The vertical scrollbar is adjustable, current width set to 10.</p>").arg(Branding.string(Branding.VersionedName))
|
> blockquote
|
||||||
|
|
||||||
|
~~This is strikethrough~~
|
||||||
|
|
||||||
|
Code example:
|
||||||
|
```
|
||||||
|
ls -l /home
|
||||||
|
```
|
||||||
|
|
||||||
|
**Lists:**
|
||||||
|
* Intel CPU systems
|
||||||
|
* AMD CPU systems
|
||||||
|
|
||||||
|
The vertical scrollbar is adjustable, current width set to 10.").arg(Branding.string(Branding.VersionedName))
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -87,5 +91,4 @@ Rectangle {
|
|||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user