aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xaux/emparse9
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) }