Pure goodness! Extremely fast to write, pedagogically super powerful.
\nNow, I sometimes would like to obtain the same fragmented list effect without the bullet point (or the numbering of 1) 2) 3)
).
\nFor instance, because I want to make 3 small images appear one after the other (the bullet messes with the layout). Also because it's not really a list.
I know it's possible to add it manually with a lot of HTML (something like: <ul style=\"list-style-type:none\"><li data-marpit-fragment=\"1\">One</li></ul>
) but the reason I'd like to use *
is not so much because it's a list, but rather because it makes it SO easy to have fragmented display.
So, I think it would be fantastic to have a third type of Fragmented list, obtained for instance with +
(CommonMark compliant):
+ One\n+ Two\n+ Three\n
which would render as
\n<ul style=\"list-style-type:none\">\n <li data-marpit-fragment=\"1\">One</li>\n <li data-marpit-fragment=\"2\">Two</li>\n <li data-marpit-fragment=\"3\">Three</li>\n </ul>\n
(P.S. Only partially related, but I would also so much like to have automatic fragmented display of tables, either row by row, or column by column. Maybe with a header instruction such as: <!-- table: row -->
. Otherwise, tables are often too complex/cluttered to present all at once, and using HTML here is simply impossible if I want to keep my sanity.)
You can change the CSS to suit your needs. In this case, add this to you slide and use the normal fragmented list:
\n# Hidden bullets\n\n<style scoped>li { list-style-type: none}</style>\n\n* These bullets\n* are hidden\n* to the viewer\n
More complex example, personalizing the CSS for each item individually: https://juanvvc.github.io/markdown-slides/marp/marp-tutorial.html#20 Code: https://github.com/Juanvvc/markdown-slides/blob/master/marp/marp-tutorial.md?plain=1#L372
\nYou can also create CSS classes:
\n<style>.hidden-bullets li { list-style-type: none}</style>\n\n# Normal slide\n\n- Normal\n* Fragmented\n* List\n\n# Hidden bullets\n<!-- _class: hidden-bullets -->\n\n- These bullets\n* are hidden\n* to the viewer\n
Also, notice: you can use -
for the first item in the list, and the first item will appear from the beginning. I think this is a nice feature if you are planning to use animated lists.
-
The automatic fragmented list obtained with
Pure goodness! Extremely fast to write, pedagogically super powerful. Now, I sometimes would like to obtain the same fragmented list effect without the bullet point (or the numbering of I know it's possible to add it manually with a lot of HTML (something like: So, I think it would be fantastic to have a third type of Fragmented list, obtained for instance with
which would render as
(P.S. Only partially related, but I would also so much like to have automatic fragmented display of tables, either row by row, or column by column. Maybe with a header instruction such as: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Unfortunately, Marp team has recognized the fragmented list as evil feature rather than the killer feature. We are in favor of the following presentation practice:
In addition, new syntax with implicit assigning We always recommend to make a Marp plugin, to transform |
Beta Was this translation helpful? Give feedback.
-
You can change the CSS to suit your needs. In this case, add this to you slide and use the normal fragmented list:
More complex example, personalizing the CSS for each item individually: https://juanvvc.github.io/markdown-slides/marp/marp-tutorial.html#20 Code: https://github.com/Juanvvc/markdown-slides/blob/master/marp/marp-tutorial.md?plain=1#L372 You can also create CSS classes:
Also, notice: you can use |
Beta Was this translation helpful? Give feedback.
You can change the CSS to suit your needs. In this case, add this to you slide and use the normal fragmented list:
More complex example, personalizing the CSS for each item individually: https://juanvvc.github.io/markdown-slides/marp/marp-tutorial.html#20 Code: https://github.com/Juanvvc/markdown-slides/blob/master/marp/marp-tutorial.md?plain=1#L372
You can also create CSS classes: