question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong ordering when uncovering list fragments using Markdown

See original GitHub issue

Versions

  • Manjaro Linux 5.5.0, 64 bit
  • vscode-reveal 4.0.3
  • Chrome 78

Example

Given the following example:

# Fragment Test

Some text before.

* A <!-- .element: class="fragment" -->
* B <!-- .element: class="fragment" -->
* C <!-- .element: class="fragment" -->
* D <!-- .element: class="fragment" -->

Some text after.

Expected Behavior

The unstructured list items are uncovered as A, B, C, D.

Actual Behavior

The unstructured list items are uncovered as D, A, B, C.

Observations

The generated HTML looks like this:

<ul class="fragment visible" data-fragment-index="0">
    <li class="fragment visible" data-fragment-index="1">A </li>
    <li class="fragment visible" data-fragment-index="2">B </li>
    <li class="fragment visible current-fragment" data-fragment-index="3">C </li>
    <li>D </li>
</ul>

This explains the wrong ordering, but I don’t know how to correct the Markdown text to get the desired result.

Maybe I’m just using the fragment notation in a wierd way. Thanks anyway.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
evilzcommented, Dec 7, 2021

You can do this

# Fragment Test

Some text before.

* A{.fragment}
* B{.fragment}
* C{.fragment}
* D{.fragment}

Some text after.
```
0reactions
pohltcommented, Dec 7, 2021

Awesome - you rock!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Markdown processed incorrectly inside ...
In my Reveal.js presentations I have some math equations. I prefer to have my slides in external Markdown files. Now, in Reveal.js 3.6.0 ......
Read more >
markdown display incorrect when add code block in list
In order to use the highlight Liquid tag here you need to ensure the result of Liquid processing is the appropriately indented markdown....
Read more >
Pandoc User's Guide
Pandoc's enhanced version of Markdown includes syntax for tables, definition lists, metadata blocks, footnotes, citations, math, and much more.
Read more >
Basic Syntax
You can organize items into ordered and unordered lists. Ordered Lists. To create an ordered list, add line items with numbers followed by...
Read more >
Advanced R Markdown Word Format — rdocx_document ...
When the base_format used is bookdown::word_document2 , the number_sections parameter is automatically set to FALSE . Indeed, if you want numbered titles, you ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found