jgm / djot.js

JavaScript implementation of djot
MIT License
141 stars 15 forks source link

Single lines starting with `{a="` disappear #47

Closed hellux closed 1 year ago

hellux commented 1 year ago
{a=" inline text

gives no output instead of

<p>{a=&rdquo; inline text</p>
jgm commented 1 year ago

Interesting, if you add a blank line after it, or something like "# head", you'll get the expected output. So Perhaps we just need to ensure that the continue function is called again at the end of input?

jgm commented 1 year ago

We need to handle the case where the close method for a attributes container is called, not because continue fails, but because the end of the document has been reached. If at this point the container's extra.status is "continue", we need to reparse.