edemaine / coauthor

Coauthor supercollaboration/discussion forum
MIT License
245 stars 32 forks source link

tables immediately before closing HTML tags break #609

Open tckmn opened 1 year ago

tckmn commented 1 year ago

What's wrong?

If an HTML element ends with a table, the table gains an extra row, and the HTML element does not close. (Adding a blank line between the table and the closing tag fixes this.)

see also #583

How to Reproduce

<details>
<summary>expand</summary>
normal
</details>

<div>
| this | is |
-|-
| a first | table |
</div>

<details>
<summary>expand</summary>
| this | is |
-|-
| a second | table |

| this | is |
-|-
| a third | table |
</details>

what?

The first and third tables have extra rows, and the text "what?" is inside the <details> object. (Also, the second half of the post is wrapped in the <div>, as if the closing tag weren't there.)

Screenshots

Context