Skip to content
\n

Pure goodness! Extremely fast to write, pedagogically super powerful.

\n

Now, 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.

\n

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.

\n

So, I think it would be fantastic to have a third type of Fragmented list, obtained for instance with + (CommonMark compliant):

\n
+ One\n+ Two\n+ Three\n
\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
\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.)

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

You can change the CSS to suit your needs. In this case, add this to you slide and use the normal fragmented list:

\n\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

\n

You can also create CSS classes:

\n\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.

","upvoteCount":3,"url":"https://github.com/orgs/marp-team/discussions/270#discussioncomment-2209927"}}}

Fragmented list with no bullet/numbering #270

Answered by Juanvvc
sbibauw asked this question in Ideas
Discussion options

You must be logged in to vote

You can change the CSS to suit your needs. In this case, add this to you slide and use the normal fragmented list:

# Hidden bullets

<style scoped>li { list-style-type: none}</style>

* These bullets
* are hidden
* to the viewer

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:

<style>.hidden-bullets li { list-style-type: none}</style>

# Normal slide

- Normal
* Fragmented
* List

# Hidden bullets
<!-- _class: hidden-bullets -->

- These bullets
* are hidden
* to the vie…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
6 replies
@yhatt
Comment options

@sbibauw
Comment options

@yhatt
Comment options

@Juanvvc
Comment options

@sbibauw
Comment options

Comment options

You must be logged in to vote
6 replies
@sbibauw
Comment options

@bilogic
Comment options

@yhatt
Comment options

@bilogic
Comment options

@yhatt
Comment options

Answer selected by sbibauw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
4 participants