markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

wrong h3 indentation after bullet points

Open wischi-chr opened this issue 7 years ago • 4 comments
trafficstars

The following markdown is not rendered correctly

# Indentation Test

### Header 1
  - Bulletpoint 1
### Header 2 <---
  - Bulletpoint 2

On github it looks like this: https://gist.github.com/wischi-chr/dc48d7957e80fb4e2024f7f304489ced correct_markdown

but it's rendered like that:

wrong_markdown

wischi-chr avatar Feb 10 '18 15:02 wischi-chr

Thanks for the feedback! It's a compiler issue in both Marked and Remark. You can open up an issue there and I'll update the dependencies here once the problem is resolved.

Otherwise just add a space between the header and the list items and it will work.

simov avatar Feb 10 '18 16:02 simov

I'm a bit lazy and on mobile right now so I copied the issue description to the compiler projects.

https://github.com/remarkjs/remark/issues/325
https://github.com/chjj/marked/issues/1047

wischi-chr avatar Feb 11 '18 13:02 wischi-chr

Response from Marked so far:

Believe this is related to new lines and possible regex - believe you would see the same behavior from the original Daring Fireball implementation as well. Can you try the following:

### Header 1

- Bulletpoint 1

### Header 2

- Bulletpoint 2

joshbruce avatar Feb 11 '18 23:02 joshbruce

@wischi-chr it seems to be fixed in the latest release of Remark. I've published it with v3.6 of the extension.

simov avatar Jul 08 '18 06:07 simov