mirror of
https://github.com/caylakpenguen/bashblog.git
synced 2024-12-13 11:39:33 +03:00
Added additional check that will allow the use of pandoc without the --strict flag or 'hsmarkdown' hack.
This commit is contained in:
parent
9f66ad0c5b
commit
c9a297c9b1
5
bb.sh
5
bb.sh
|
@ -171,7 +171,10 @@ global_variables_check() {
|
|||
# Test if the markdown script is working correctly
|
||||
test_markdown() {
|
||||
[[ -n $markdown_bin ]] &&
|
||||
[[ $("$markdown_bin" <<< $'line 1\n\nline 2') == $'<p>line 1</p>\n\n<p>line 2</p>' ]]
|
||||
(
|
||||
[[ $("$markdown_bin" <<< $'line 1\n\nline 2') == $'<p>line 1</p>\n\n<p>line 2</p>' ]] ||
|
||||
[[ $("$markdown_bin" <<< $'line 1\n\nline 2') == $'<p>line 1</p>\n<p>line 2</p>' ]]
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user