Summary Files Commits Branches @commit @diff @stats
path: root / single.awk
diff options
context:
space:
mode:
1 files changed, 12 insertions, 1 deletions
-rw-r--r--single.awk13
diff --git a/single.awk b/single.awk
index 46ff93d..82555f6 100644
--- a/single.awk
+++ b/single.awk
@@ -26,7 +26,9 @@
# [x] Subscript ~...~
# [ ] Footnote [^...] (with user customizations)
# [ ] Task list - [ ]
-# [ ] Definition lists
+# [.] Definition lists
+# [x] Single line
+# [ ] Multi-line
# [ ] Fenced code blocks ```lang ```
# [ ] Table alignment
@@ -212,6 +214,15 @@ function surround(brace, opening, closing) {
}
+!prev_blankline && /^: / {
+ sub(/^<p>/, "", prev)
+ sub(/^: /, "")
+ print "<dl><dt>" prev "</dt>" ORS "<dd>" $0 "</dd></dl>"
+ skipprint = 1
+ blankline = 1
+ next
+}
+
{
println()
}