Add wizard for markdown file

Fixes: QTCREATORBUG-29056
Change-Id: Ia2ba9aef86aab3e156e3c36d8e28c9f37d7da8b3
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2023-04-18 15:59:30 +02:00
parent ee140a8231
commit b5d7b24733
2 changed files with 91 additions and 0 deletions

View 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

View 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
}
}
]
}