engine: Let's try Pandoc to convert Markdown to HTML
This commit is contained in:
parent
8a1d42e043
commit
39b03f3100
6
qsgen2
6
qsgen2
@ -147,12 +147,12 @@ if [[ ${generator} == "native" ]]; then
|
|||||||
engine=_html
|
engine=_html
|
||||||
export file_ext=tpl
|
export file_ext=tpl
|
||||||
elif [[ ${generator} == "markdown" ]]; then
|
elif [[ ${generator} == "markdown" ]]; then
|
||||||
if [[ ! -f /usr/bin/Markdown.pl ]]; then
|
if [[ ! -f /usr/local/bin/pandoc ]]; then
|
||||||
_msg other "Please install the perl-Text-Markdown package."
|
_msg other "Please install Pandoc."
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
# Usage: ${engine} ${1} - Where 1 is the file you want parsed
|
# Usage: ${engine} ${1} - Where 1 is the file you want parsed
|
||||||
engine=/usr/bin/Markdown.pl
|
engine=/usr/local/bin/pandoc
|
||||||
# function engine() {
|
# function engine() {
|
||||||
#
|
#
|
||||||
# local command="/usr/bin/Markdown.pl"
|
# local command="/usr/bin/Markdown.pl"
|
||||||
|
Loading…
Reference in New Issue
Block a user