Skip to content

Directive to skip slide in PDF: _skip-pdf: true #489

Answered by yhatt
sbibauw asked this question in Ideas
Discussion options

You must be logged in to vote

The Marp team does not plan to adopt this proposal at this time because:

  • It could allow to make the different contents and semantics from original Markdown and other output formats, and may become easy to lose document consistency.
  • Marp already has a lot of directives. We don't want to blindly add features and overwhelm users.

An existing feature of Marp/Marpit that exhibits the behavior you've described is Fragments (particularly in the context of PDF output). By using fragments with some CSS tricks, you can achieve the same behavior as your proposal.

<style scoped>
@media screen {
  /* Viewing on HTML (Marp CLI's bespoke template): Hide not current fragments */
  [data-marpit-fragment][

Replies: 1 comment

Comment options

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