From 784f8c91c436d4f90d3af12e2790e60ef082601c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 1 Jan 2025 11:40:43 +0200 Subject: feat(single): Support for strikethrough, superscript and subscript --- single.awk | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'single.awk') diff --git a/single.awk b/single.awk index 7698bca..0481a49 100644 --- a/single.awk +++ b/single.awk @@ -6,14 +6,14 @@ # identation with which the list beginning (e.g. "* " or "5. ") was written. # The benefit is that all Markdown is parsed as normal inside an item. # -# [ ] Non-standard features -# [ ] Strikethrough ~~...~~ -# [ ] Superscript ^...^ -# [ ] Subscript ~...~ +# [.] Non-standard features +# [x] Strikethrough ~~...~~ +# [x] Superscript ^...^ +# [x] Subscript ~...~ # [ ] Footnote [^...] (with user customizations) # [ ] Task list - [ ] (readonly) # [ ] Definition lists -# [x] Single line +# [ ] Single line # [ ] Multi-line # [ ] Fenced code blocks ```lang ``` # [ ] Tables @@ -340,6 +340,10 @@ function gsurround(brace, left, right, blen) { gsurround("\\*" , "" , "", 1) gsurround("``" , "" , "") gsurround("`" , "" , "") + + gsurround("~~" , "" , "") + gsurround("~" , "" , "") + gsurround("\\^", "" , "", 1) } # Links -- cgit v1.3.1-23-gd82d