Skip to content

How can I post marp slide to blogger(blogspot) properly? #173

Answered by yhatt
luceat-lux-vestra asked this question in Q&A
Discussion options

You must be logged in to vote

Don't use HTML generated by Marp CLI / Marp for VS Code as an embed snippet. It is designed for a standalone HTML file to present the deck, not for a snippet to embed to the blog article. If just copied exported HTML and pasted to blog, your site will be broken surely.

In your situation, recommend to use HTML and CSS snippets generated from Marp Core or Marpit. If you really want to use HTML file created by Marp CLI / Marp for VS Code, consider to use <iframe> tag to put the exported HTML. It can control the slide size by width and height attribtues.

 <iframe src="https://example.com/url-to-your-marp-slide.html" width="720" height="405" />

When you're using Marp Core (or Marpit with inlin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrchantey
Comment options

Answer selected by luceat-lux-vestra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants