главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gauthier <mikeg@3cx.org>2016-12-29 00:39:28 -0500
committerMike Gauthier <mikeg@3cx.org>2016-12-29 00:39:28 -0500
commitc9a297c9b1138bd0fe029d45f0929c5c401babe0 (patch)
tree6b8b12a17d305428ec8870d76267dc8f6b04d09b
parent9f66ad0c5b1767f578fb128f6d7a600587f496a8 (diff)
Added additional check that will allow the use of pandoc without the --strict flag or 'hsmarkdown' hack.
-rwxr-xr-xbb.sh5
1 files changed, 4 insertions, 1 deletions
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') == $'<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>' ]]
+ )
}