forked from qt-creator/qt-creator
Add wizard for markdown file
Fixes: QTCREATORBUG-29056 Change-Id: Ia2ba9aef86aab3e156e3c36d8e28c9f37d7da8b3 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
49
share/qtcreator/templates/wizards/files/markdown/file.md
Normal file
49
share/qtcreator/templates/wizards/files/markdown/file.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# First Level Heading
|
||||
|
||||
Paragraph.
|
||||
|
||||
## Second Level Heading
|
||||
|
||||
Paragraph.
|
||||
|
||||
- bullet
|
||||
+ other bullet
|
||||
* another bullet
|
||||
* child bullet
|
||||
|
||||
---
|
||||
|
||||
1. ordered
|
||||
2. next ordered
|
||||
|
||||
### Third Level Heading
|
||||
|
||||
Some *italic* and **bold** text and `inline code`.
|
||||
|
||||
An empty line starts a new paragraph.
|
||||
|
||||
Use two spaces at the end
|
||||
to force a line break.
|
||||
|
||||
Add links inline like [this link to the Qt homepage](https://www.qt.io),
|
||||
or with a reference like [this other link to the Qt homepage][1].
|
||||
|
||||
Add code blocks with
|
||||
four spaces at the front.
|
||||
|
||||
> A blockquote
|
||||
> starts with >
|
||||
>
|
||||
> and has the same paragraph rules as normal text.
|
||||
|
||||
First Level Heading in Alternate Style
|
||||
======================================
|
||||
|
||||
Paragraph.
|
||||
|
||||
Second Level Heading in Alternate Style
|
||||
---------------------------------------
|
||||
|
||||
Paragraph.
|
||||
|
||||
[1]: https://www.qt.io
|
42
share/qtcreator/templates/wizards/files/markdown/wizard.json
Normal file
42
share/qtcreator/templates/wizards/files/markdown/wizard.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"version": 1,
|
||||
"supportedProjectTypes": [ ],
|
||||
"id": "E.Markdown",
|
||||
"category": "U.General",
|
||||
"trDescription": "Creates a markdown file.",
|
||||
"trDisplayName": "Markdown File",
|
||||
"trDisplayCategory": "General",
|
||||
"iconText": "md",
|
||||
"platformIndependent": true,
|
||||
"enabled": "%{JS: value('Plugins').indexOf('TextEditor') >= 0}",
|
||||
|
||||
"options": [
|
||||
{ "key": "FileName", "value": "%{JS: Util.fileName(value('TargetPath'), 'md')}" }
|
||||
],
|
||||
|
||||
"pages" :
|
||||
[
|
||||
{
|
||||
"trDisplayName": "Location",
|
||||
"trShortTitle": "Location",
|
||||
"typeId": "File"
|
||||
},
|
||||
{
|
||||
"trDisplayName": "Project Management",
|
||||
"trShortTitle": "Summary",
|
||||
"typeId": "Summary"
|
||||
}
|
||||
],
|
||||
"generators" :
|
||||
[
|
||||
{
|
||||
"typeId": "File",
|
||||
"data":
|
||||
{
|
||||
"source": "file.md",
|
||||
"target": "%{FileName}",
|
||||
"openInEditor": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user