You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on my understanding, the second item and third item should appear at the same time because both of them have the fragment id 2. However, when exporting HTML, they don't.
I know I can group the last two items by a div like this to achieve my goal:
Index numbers in data-marpit-fragment are just a hint for integrated apps, and whether they followed the specified group number is depending on their implementation.
In the case of Marp (CLI), it's just based on the order of DOM and will ignore the value of dataset because we think it's a pain to change index numbers manually whenever added or removed fragmented list items. In fact, the solution of #195 shows we don't require fragment index.
The hybrid solution to recognize both of specific index number and no index number is looks like good, but may break exist slides so we are not actively to work for now.
Implementation in Marp CLI is here. Marpit is just creating HTML structure and there are no logics to control the state of fragments.
From my experience, there is little possibility to use the fragment with the specific index number (for well-controlled order) and without index number (for convenience and by default) in one slide at the same time. Maybe we can add a directive so that user could decide which style of fragment is used in the slide. Just a simple suggestion.
Following the #145 I can build a fragment list like this:
Based on my understanding, the second item and third item should appear at the same time because both of them have the fragment id 2. However, when exporting HTML, they don't.
I know I can group the last two items by a
div
like this to achieve my goal:But I'm still curious why we can not automatically "group" them by given the same fragment id.
The text was updated successfully, but these errors were encountered: