I checked the impl and it seems safeWriteChar for escaping <>&" is only necessary for HTML output and not JSON one.
This PR fixes it by changing all usages of writeJSONString within JOSNRenderer to unescaped (my guess even for attrs it might be unnecessary but haven't touched it)
Also added small changes in test to cover regression + only make sure JSON renderer can pass the commonmark parsing. (TODO, still failing)
Resolves #5
I checked the impl and it seems
safeWriteChar
for escaping<>&"
is only necessary for HTML output and not JSON one.This PR fixes it by changing all usages of
writeJSONString
withinJOSNRenderer
to unescaped (my guess even for attrs it might be unnecessary but haven't touched it)Also added small changes in test to cover regression +
only make sure JSON renderer can pass the commonmark parsing.(TODO, still failing)