ZIm/crates/markdown_preview
Bennet Bo Fenner 6d78737973
markdown preview: Insert missing line break on hard break (#9687)
Closes #8990

For this input
```
Test \
Test
```

pulldown_cmark reports
```
Start(Paragraph)
Text(Borrowed("Test "))
HardBreak
Text(Borrowed("Test"))
End(Paragraph)
```

Previously `Event::HardBreak` just marked the paragraph block as
completed and ignored all the remaining text inside the paragraph.

Before:
See https://github.com/zed-industries/zed/issues/8990#issue-2173197637

After:

![image](https://github.com/zed-industries/zed/assets/53836821/48237ea6-d749-4207-89a3-b0f146b0e544)


Release Notes:

- Fixed markdown preview not handling hard breaks (e.g. `\`) correctly
([#8990](https://github.com/zed-industries/zed/issues/8990)).
2024-03-25 10:06:00 +02:00
..
src markdown preview: Insert missing line break on hard break (#9687) 2024-03-25 10:06:00 +02:00
Cargo.toml markdown preview: highlight code blocks (#9087) 2024-03-12 12:54:12 +02:00
LICENSE-GPL Add initial markdown preview to Zed (#6958) 2024-02-01 11:03:09 +02:00