Skip to content
Discussion options

You must be logged in to vote

No, Marp does not have a controllable setting to enable or disable fragments via directives, including YAML frontmatter.

In Marpit framework, the handling of data-marpit-fragment is delegated to renderers including Marp. But Marp team treats the build step animations powered by fragments as not good habits for creating an effective presentation slide. So we currently have no motivation to enhance them.

However, Marp also has a flexibility to customize directives and rendering behavior by the plugin, as shown in #594. Thus, you can write a plugin to add a new directive to control fragments and render the attribute accordingly.

Here is an example engine for Marp CLI, with a plugin to define f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jjq0425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants