mirror of
https://github.com/marty-oehme/scripts.git
synced 2024-11-17 23:38:07 +00:00
improved regular expression
This commit is contained in:
parent
40a3ba0e20
commit
660fc57c82
1 changed files with 1 additions and 2 deletions
|
@ -17,8 +17,7 @@ QtObject {
|
|||
function noteToMarkdownHtmlHook(note, html) {
|
||||
// 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*)\[[xX]\]/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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue