Commit 74ec9e9
committed
Remove trailing newline from fenced code blocks
In some cases, `<pre><code>...\n</pre></code>` led to a trailing newline
in the code block as rendered by Tiptap.
Remove the trailing newline from HTML as serialized by markdown-it in
order to avoid this.
The other way round, while saving the file back, serializing to markdown
removes trailing newlines from code blocks anyway, so we don't have to
care about them.
Fixes: #2344
Signed-off-by: Jonas <jonas@freesources.org>1 parent f82828e commit 74ec9e9
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
0 commit comments