Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not preview successfully in slides forms. #453

Closed
lindingkang opened this issue Apr 8, 2024 · 3 comments
Closed

Can not preview successfully in slides forms. #453

lindingkang opened this issue Apr 8, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists question 🙅 Not issue, just a question (should post to Marp discussion)

Comments

@lindingkang
Copy link

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
Copy link
Member

yhatt commented Apr 8, 2024

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 yhatt added duplicate This issue or pull request already exists question 🙅 Not issue, just a question (should post to Marp discussion) labels Apr 8, 2024
@yhatt
Copy link
Member

yhatt commented Apr 8, 2024

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
Copy link
Author

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.

@yhatt yhatt closed this as completed Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question 🙅 Not issue, just a question (should post to Marp discussion)
Projects
None yet
Development

No branches or pull requests

2 participants