diff options
author | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2014-05-23 19:20:11 +0200 |
---|---|---|
committer | Carlos Fenollosa <carlos.fenollosa@gmail.com> | 2014-05-23 19:20:11 +0200 |
commit | fbaa5118ddf144dade34e9dc258d76d054733bc9 (patch) | |
tree | ee528a9300c32a90f0bcda1a7dcccc44d78fe877 | |
parent | ac7437778ef7caddee729017e48d5bc4b4efa20a (diff) | |
parent | 39c4a80cec25c3a19f5b2bad0c3c5c1540da24b9 (diff) |
Merge pull request #46 from Lex-2008/master
test markdown before editing *.md files
-rwxr-xr-x | bb.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -361,6 +361,11 @@ edit() { filename="$1" else if [[ "${1##*.}" == "md" ]]; then + test_markdown + if [[ "$?" -ne 0 ]]; then + echo "Markdown is not working, please edit HTML file directly." + exit + fi # editing markdown file $EDITOR "$1" TMPFILE="$(markdown "$1")" |