diff --git a/selected-markdown-to-bbcode-dev/info.json b/selected-markdown-to-bbcode-dev/info.json index baca759..f622e8f 100644 --- a/selected-markdown-to-bbcode-dev/info.json +++ b/selected-markdown-to-bbcode-dev/info.json @@ -6,5 +6,5 @@ "authors": ["@pbek"], "version": "0.0.1", "minAppVersion": "17.05.8", - "description" : "With this script you can right click the selected text and convert it to BBCode Code.\n\nDependencies\nPancode\npanbbcode.lua\n\nInstallation\nAfter you have installed Pancode you have to download the lua script panbbcode.lua and configure both paths in the script settings." + "description" : "With this script you can right click the selected text and convert it to BBCode Code.\n\nDependencies\nPandoc\npanbbcode.lua (bundled with the script)\n\nInstallation\nAfter you have installed Pandoc you have to configure its path in the script settings." } diff --git a/selected-markdown-to-bbcode-dev/selected-markdown-to-bbcode.qml b/selected-markdown-to-bbcode-dev/selected-markdown-to-bbcode.qml index 4b68677..f665e82 100644 --- a/selected-markdown-to-bbcode-dev/selected-markdown-to-bbcode.qml +++ b/selected-markdown-to-bbcode-dev/selected-markdown-to-bbcode.qml @@ -47,7 +47,8 @@ QtObject { // get the selected text from the note text edit var text = script.noteTextEditSelectedText(); - var panbbcodePath = scriptDirPath + "/panbbcode.lua"; + // get the path of the lua script + var panbbcodePath = scriptDirPath + script.dirSeparator() + "panbbcode.lua"; // you need pandoc and the BBCode writer from https://github.com/2ion/pandoc-bbcode // to convert Markdown to BBCode