shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.48k stars 173 forks source link

[BUG] Next slide gets merged in when current slide ends with a ``` code block in the presenter #1930

Open philippeqc opened 9 months ago

philippeqc commented 9 months ago

Describe the bug In the presenter, when a slide ends with a code block such as

```html
<!-- slide vertical=true -->

then the content of the next slide is incorporated in the current one starting with a line "[CROSSNOTESLIDE]"

**Environment**
- OS: Windows 10
- VSCode: 1.85.2
- Markdown Preview Enhanced: 0.8.11

**To Reproduce**
Using [markdown.md](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/files/14067789/markdown.md), in VS code, open the "Markdown Preview Enhanced: Open Preview to the Side". The preview displays the fault. See attached image.
![Markdown](https://github.com/shd101wyy/vscode-markdown-preview-enhanced/assets/12171263/854441b3-0594-4638-8f74-fb1d349a6fb7)
shanehoey commented 5 months ago

This one was annoying me a fair bit, now as a work around I just include <div/> on the line below the code block rather than text that you see eg

``` text
   Code block content goes here