marp-team / marp-vscode

Marp for VS Code: Create slide deck written in Marp Markdown on VS Code
https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode
MIT License
1.55k stars 72 forks source link

Can not preview successfully in slides forms. #453

Closed lindingkang closed 4 months ago

lindingkang commented 5 months ago

After downloading the plugin and opening the file, the preview on the right couldn't successfully preview it as a PowerPoint. I tried to output in both HTML and PDF formats, and the output was not a horizontally paginated PowerPoint, but a vertical page of non paginated white paper as shown on the right side of the preview.

image

yhatt commented 5 months ago

Marp for VS Code has been designed as an extension for VS Code built-in Markdown preview. Your screenshot looks like showing a different Markdown preview feature provided by an other VS Code extension. Try opening the default Markdown preview from the command palette (Markdown: Open Preview to the Side).

Similar

yhatt commented 5 months ago

I tried to output in both HTML and PDF formats, and the output was not a horizontally paginated PowerPoint, but a vertical page of non paginated white paper as shown on the right side of the preview.

By Markdown spec, if there is --- immediately following a line of text, it is treated as part of a setext heading and not as a page break.

In other words,

good
---
gg
---

is exactly same meaning as:

## good
## gg

You should make a blank line between the text and a ruler to split slide pages, like that:

good

---

gg

---
lindingkang commented 5 months ago

Marp for VS Code has been designed as an extension for VS Code built-in Markdown preview. Your screenshot looks like showing a different Markdown preview feature provided by an other VS Code extension. Try opening the default Markdown preview from the command palette (Markdown: Open Preview to the Side).

Similar

Thanks a lot. This commod works.