mirror of
https://github.com/marty-oehme/scripts.git
synced 2024-12-22 16:08:09 +00:00
script update
This commit is contained in:
parent
2583d83d5f
commit
eb6e526fbc
2 changed files with 3 additions and 2 deletions
|
@ -6,5 +6,5 @@
|
||||||
"authors": ["@pbek"],
|
"authors": ["@pbek"],
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"minAppVersion": "17.05.8",
|
"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."
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,8 @@ QtObject {
|
||||||
// get the selected text from the note text edit
|
// get the selected text from the note text edit
|
||||||
var text = script.noteTextEditSelectedText();
|
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
|
// you need pandoc and the BBCode writer from https://github.com/2ion/pandoc-bbcode
|
||||||
// to convert Markdown to BBCode
|
// to convert Markdown to BBCode
|
||||||
|
|
Loading…
Reference in a new issue