From c9a297c9b1138bd0fe029d45f0929c5c401babe0 Mon Sep 17 00:00:00 2001 From: Mike Gauthier Date: Thu, 29 Dec 2016 00:39:28 -0500 Subject: [PATCH] Added additional check that will allow the use of pandoc without the --strict flag or 'hsmarkdown' hack. --- bb.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index cd3705b..4911d7c 100755 --- a/bb.sh +++ b/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') == $'

line 1

\n\n

line 2

' ]] + ( + [[ $("$markdown_bin" <<< $'line 1\n\nline 2') == $'

line 1

\n\n

line 2

' ]] || + [[ $("$markdown_bin" <<< $'line 1\n\nline 2') == $'

line 1

\n

line 2

' ]] + ) }