Closed mbostock closed 3 months ago
This doesn’t correctly handle this case:
<textarea>${1 + 2}</textarea> ${2}
Maybe we want to bring back the tokenizing parser from #1425, even if we’re only going to parse inline expressions within Markdown tokens.
Superseded by #1441.
Fixes #375. We were ignoring script elements already, but we need to ignore all rawtext elements and we also need to ignore comments. Technically we might also want to ignore cdata and other weird things, but those are extremely rare so I didn’t bother.
Ref. https://spec.commonmark.org/0.31.2/#html-blocks Ref. https://github.com/observablehq/htl/blob/e3e9777d09f7b5aea3ebc52e73b86a1246dcab7e/src/index.js#L631-L637