nextjournal/clerk

Top-level multiline strings are not rendered

yuhan0 opened this issue · 1 comments

This appears to be a bug - unless there are some sort of undocumented semantics around multi-line strings?

(ns repro)

"regular string"

"top-level string
spanning multiple lines -
does not get rendered"

"Note:\n escaped newlines work fine"

["and so do
nested values"]

Resulting document:
image

Note that both the code and value outputs are missing. Inspecting the DOM shows that there are no div containers in the expected position (rather than having empty contents)

mk commented

This was an omission in the parser and should be fixed with the attached patch. Thanks for the report!