mirror of
https://github.com/marty-oehme/scripts.git
synced 2024-11-18 07:48:07 +00:00
Include uppercase x (#40)
* Include uppercase x Some people may be used to use uppercase x to mark checkboxes. The plugin should work in that case too. * Update info.json Updated version, authors and description. * Update info.json * Update info.json Corrected mistake
This commit is contained in:
parent
1cf129e5d9
commit
40a3ba0e20
2 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,8 @@ QtObject {
|
|||
// see http://doc.qt.io/qt-5/richtext-html-subset.html for a list of
|
||||
// supported css styles
|
||||
html = html.replace(/<li>(\s*)(<p>)*(\s*)\[x\]/g, "<li style=\"list-style-type: none; margin-left: -16px;\">$1$2$3☑");
|
||||
html = html.replace(/<li>(\s*)(<p>)*(\s*)\[X\]/g, "<li style=\"list-style-type: none; margin-left: -16px;\">$1$2$3☑");
|
||||
html = html.replace(/<li>(\s*)(<p>)*(\s*)\[ \]/g, "<li style=\"list-style-type: none; margin-left: -16px;\">$1$2$3☐");
|
||||
return html;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"name": "Checkbox preview and export",
|
||||
"identifier": "export-checkboxes",
|
||||
"script": "export-checkboxes.qml",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"minAppVersion": "17.12.0",
|
||||
"authors": ["@m-wim"],
|
||||
"description" : "This script changes the html output of the preview and export. If a list item starts with a checkbox-mark like <pre>- [x]</pre> and <pre>- [ ]</pre> the list-bullet and mark are replaced with a single UTF-8 character ☑ and ☐ for checked/unchecked states."
|
||||
"authors": ["@m-wim", "@visika"],
|
||||
"description" : "This script changes the html output of the preview and export. If a list item starts with a checkbox-mark like <pre>- [x]</pre>, <pre>- [X]</pre> and <pre>- [ ]</pre> the list-bullet and mark are replaced with a single UTF-8 character ☑ and ☐ for checked/unchecked states."
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue