diff options
author | John Ankarström <john@ankarstrom.se> | 2021-01-29 20:09:20 +0000 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-01-29 20:09:20 +0000 |
commit | 4c238cc343935253c37c1da84d285b0adb21944a (patch) | |
tree | cdb3938a86dc48448f9a11384df52a9f122c3fa6 /aux | |
parent | d72f8481386fa129152cf759eeb2075762053de6 (diff) | |
download | em-4c238cc343935253c37c1da84d285b0adb21944a.tar.gz |
Remove hyperlink reference list items from output
Diffstat (limited to 'aux')
-rwxr-xr-x | aux/emparse | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/aux/emparse b/aux/emparse index d6073f3..f92e342 100755 --- a/aux/emparse +++ b/aux/emparse @@ -142,10 +142,11 @@ expectblock && /^===== .* =====$/ { heading(5, $0); next } expectblock && /^====== .* ======$/ { heading(6, $0); next } expectblock { newblock("p") } -block = "ul" && /^ - / { item(1, "ul", line) } -block = "ol" && /^ [0-9a-z]+\. / { item(1, "ol", line) } -block = "nl" && /^ \[[0-9a-z]\]+ / { item(1, "nl", line) } -block = "dl" && /^ .*: / { term(line) } +block = "ul" && /^ - / { item(1, "ul", line) } +block = "ol" && /^ [0-9a-z]+\. / { item(1, "ol", line) } +block = "nl" && /^ \[[0-9a-z]\]+ [^ ]+$/ { next; } # hyperlink reference +block = "nl" && /^ \[[0-9a-z]\]+ / { item(1, "nl", line) } # text reference +block = "dl" && /^ .*: / { term(line) } block = "ul" && /^ -/ { item(2, "ul", line) } block = "ol" && /^ [0-9a-z]+\./ { item(2, "ol", line) } |