1
0
Fork 0
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:
Mariano Mollo 2018-09-04 06:14:44 +02:00 committed by Patrizio Bekerle
parent 1cf129e5d9
commit 40a3ba0e20
2 changed files with 5 additions and 4 deletions

View file

@ -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&#x2611;");
html = html.replace(/<li>(\s*)(<p>)*(\s*)\[X\]/g, "<li style=\"list-style-type: none; margin-left: -16px;\">$1$2$3&#x2611;");
html = html.replace(/<li>(\s*)(<p>)*(\s*)\[ \]/g, "<li style=\"list-style-type: none; margin-left: -16px;\">$1$2$3&#x2610;");
return html;
}
}
}

View file

@ -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 &#x2611; and &#x2610; 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 &#x2611; and &#x2610; for checked/unchecked states."
}