Closed derekxu16 closed 1 year ago
CC @chenzhiguang I believe this is intentional, according to CommonMark spec. I'm not certain though.
I can't find any information on this in the spec, but I could see the CommonMark live demo does not encode '
: https://spec.commonmark.org/dingus/?text=```%0A%27abc%27%0A```
I will fix it later soon.
I believe that only
&
,<
, and>
should turn into HTML entities when they're within fenced code blocks;'
should not.The following is a way to reproduce this problem:
Inspecting the
nodes
array in this example reveals the problem.