diff options
1 files changed, 17 insertions, 2 deletions
| -rw-r--r-- | single.awk | 19 |
@@ -3,7 +3,7 @@ # [x] Autoescape # [ ] Block elements # [x] Paragraph -# [ ] Line break +# [x] Line break # [.] Headers (atx and setex) # [x] Blockquotes # [ ] Lists @@ -17,6 +17,16 @@ # [ ] Other # [ ] Autolinks # [ ] Escapes +# +# [ ] Non-standard features +# [ ] Strikethrough ~~...~~ +# [ ] Superscript ^^...^^ +# [ ] Subscript ~...~ +# [ ] Footnote [^...] (with user customizations) +# [ ] Task list - [ ] +# [ ] Definition lists +# [ ] Fenced code blocks ```lang ``` +# [ ] Table alignment BEGIN { prev_blankline = blankline = 1 @@ -57,12 +67,17 @@ BEGIN { } # Horizontal rules -/^(-|\*|_) ?(-|\*|_) ?(-|\*|_)+$/ { +/^(-|\*|_) ?(-|\*|_) ?(-|\*|_|[[:blank:]])+$/ { print "<hr>" blankline = 1 next } +# Line break +/ $/ { + sub(/ $/, "</br>") +} + # atx-style headers /^[[:blank:]]*#+/ { match($0, /#+/) |
