about summary refs log tree commit diff stats
path: root/adapter
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-21 02:06:50 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-21 02:07:09 +0100
commit34974ef5d21b15e2ccaa3a44815c87341848f92b (patch)
tree782552317018e1ca348900691fec787bd763f95c /adapter
parent3c7528f3039fe068ce8760a5878e7c0916cfef7c (diff)
downloadchawan-34974ef5d21b15e2ccaa3a44815c87341848f92b.tar.gz
md2html: convert & to &amp; in code
Diffstat (limited to 'adapter')
-rw-r--r--adapter/format/md2html.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/adapter/format/md2html.nim b/adapter/format/md2html.nim
index 25c9cf6b..2c72634e 100644
--- a/adapter/format/md2html.nim
+++ b/adapter/format/md2html.nim
@@ -82,6 +82,7 @@ proc parseInline(line: openArray[char]) =
       of '>': append "&gt;"
       of '"': append "&quot;"
       of '\'': append "&apos;"
+      of '&': append "&amp;"
       of '`':
         append "</CODE>"
         state.excl(isCode)