From 4c238cc343935253c37c1da84d285b0adb21944a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 29 Jan 2021 20:09:20 +0000 Subject: Remove hyperlink reference list items from output --- aux/emparse | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'aux') 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) } -- cgit v1.2.3