-
|
Is there a way to disable data-marpit-fragment fragments when exporting to HTML? They're super useful when presenting and I'd like to keep them in my markdown files but when sharing presentation files it'd be useful to have the option to disable them. |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Sep 12, 2025
Replies: 1 comment 2 replies
-
|
In Marp CLI, you can inject a plugin for disabling the Marpit internal fragment plugin to Marp Core engine. marp --engine marp-engine-with-disable-fragment.mjs your-markdown.md// marp-engine-with-disable-fragment.mjs
export default ({ marp }) => marp.use((md) => md.core.ruler.disable('marpit_fragment')) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Marp CLI, you can inject a plugin for disabling the Marpit internal fragment plugin to Marp Core engine.