jgm / djot.js

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

adjacent lists render incorrectly #91

Closed iacore closed 2 months ago

iacore commented 2 months ago

try to render this

- a
- b

- c

- d
- e

current result starts with

<ul>
<li><p>a</p></li>

that's not supposed to happen

Workaround

- a
- b

{}

- c

{}

- d
- e
jgm commented 2 months ago

that's not supposed to happen

according to what? As far as I can see, this is how the syntax description requires parsing it.

iacore commented 2 months ago

o_o

according to my common sense

jgm commented 2 months ago

If you like, you can put up an issue on jgm/djot suggesting that the spec be changed. This repo is for djot.js, which is correctly implementing the current spec...