From 40a3ba0e20fbdc317eee5ad9a82f7228d8afdd19 Mon Sep 17 00:00:00 2001 From: Mariano Mollo Date: Tue, 4 Sep 2018 06:14:44 +0200 Subject: [PATCH] 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 --- export-checkboxes/export-checkboxes.qml | 3 ++- export-checkboxes/info.json | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/export-checkboxes/export-checkboxes.qml b/export-checkboxes/export-checkboxes.qml index ca7879d..2cd9dfa 100644 --- a/export-checkboxes/export-checkboxes.qml +++ b/export-checkboxes/export-checkboxes.qml @@ -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(/
  • (\s*)(

    )*(\s*)\[x\]/g, "

  • $1$2$3☑"); + html = html.replace(/
  • (\s*)(

    )*(\s*)\[X\]/g, "

  • $1$2$3☑"); html = html.replace(/
  • (\s*)(

    )*(\s*)\[ \]/g, "

  • $1$2$3☐"); return html; } -} \ No newline at end of file +} diff --git a/export-checkboxes/info.json b/export-checkboxes/info.json index 212df76..536e270 100644 --- a/export-checkboxes/info.json +++ b/export-checkboxes/info.json @@ -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
    - [x]
    and
    - [ ]
    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
    - [x]
    ,
    - [X]
    and
    - [ ]
    the list-bullet and mark are replaced with a single UTF-8 character ☑ and ☐ for checked/unchecked states." }