diff --git a/markdown.awk b/markdown.awk index 600817e..8aeca14 100644 --- a/markdown.awk +++ b/markdown.awk @@ -354,6 +354,12 @@ function parse_block(str) { else if (substr(str, 1, 1) == ">") { return parse_blockquote(str); } + else if ( \ + match(str, /^[[:space:]]*\*[[:space:]]*\*[[:space:]]*\*[[:space:]]*$/) || + match(str, /^[[:space:]]*-[[:space:]]*-[[:space:]]*-[[:space:]]*$/) || + match(str, /^[[:space:]]*_[[:space:]]*_[[:space:]]*_[[:space:]]*$/)) { + return "
Link with title: foo
EOF +check <<-"EOF" +Horizontal rules: + +- - - + +* * * + +_ _ _ +--- +Horizontal rules:
+