remark icon indicating copy to clipboard operation
remark copied to clipboard

Inline code destroys slide logic

Open YStrauch opened this issue 7 years ago • 1 comments

As soon as I use inline code on more than one slide, --- is no longer interpreted as a new slide but instead renders a <hr>.

Minimal markdown example:

# Title
---

``Foo``

---

``Instead of on a new slide, this is rendered after a hr``

Expected result: Three slides: Title, and the two others with their respective content.

Actual result: Two slides: Title, and one slide with a horizontal line that seperates the other two "slides"

Removing either of these inline code tags will produce the expected result again.

YStrauch avatar Nov 30 '17 16:11 YStrauch

I can reproduce this bug.

The issue is with code spans.

Test: codepen.io/tripu/pen/NweKYW

  • The first code span uses single backticks, and works fine.
  • The second code span is similar to what @YStrauch reported (``Foo``), and causes all subsequent pages to be joined together.

@YStrauch, while it's fixed, you can use single backticks (or triple, for that matter) instead.

tripu avatar Nov 30 '17 17:11 tripu