script update

This commit is contained in:
Patrizio Bekerle 2017-05-20 12:48:13 +02:00
parent 2583d83d5f
commit eb6e526fbc
No known key found for this signature in database
GPG Key ID: 2E9FFD770DABE838
2 changed files with 3 additions and 2 deletions

View File

@ -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\n<b>Dependencies</b>\n<a href=\"http://pandoc.org\">Pancode</a>\n<a href=\"https://github.com/2ion/pandoc-bbcode\">panbbcode.lua</a>\n\n<b>Installation</b>\nAfter you have installed <i>Pancode</i> you have to download the lua script <code>panbbcode.lua</code> 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\n<b>Dependencies</b>\n<a href=\"http://pandoc.org\">Pandoc</a>\n<a href=\"https://github.com/2ion/pandoc-bbcode\">panbbcode.lua</a> (bundled with the script)\n\n<b>Installation</b>\nAfter you have installed <i>Pandoc</i> you have to configure its path in the script settings."
}

View File

@ -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