markup icon indicating copy to clipboard operation
markup copied to clipboard

Bug in rendering markdown

Open wapmorgan opened this issue 11 years ago • 4 comments

Hi. I faced a problem with markdown. File: https://github.com/wapmorgan/csharp_for_beginners/blob/master/README.md 26th item in list have a leading extra space line.

wapmorgan avatar Jun 08 '15 21:06 wapmorgan

Seems to be the same problem as #499.

toolforger avatar Sep 16 '15 18:09 toolforger

👋 Sorry for the delayed response! This is a known issue that should be resolved with our pending move to CommonMark. We don't have a specific ETA for that, but I'll circle back to update you once it happens.

In the meantime, you can work around this by adding an HTML comment between the last numbered item and the bulleted item like this:

26. [Глава 26. Сетевые средства подключения к Интернету](c26.md)

<!-- -->

* [Приложение. Краткий справочник по составлению документирующих комментариев](appendix.md)

shawnajean avatar Mar 08 '17 22:03 shawnajean

While this works when compiling to HTML, it otherwise produces a less readable markdown readme.

Edit: just noticed the "in the meantime".

stevenvachon avatar Mar 08 '17 23:03 stevenvachon

I'm back! We moved over to CommonMark last week:

https://github.com/blog/2333-a-formal-spec-for-github-flavored-markdown

Here's a Gist with the contents of that README without the empty HTML comment:

https://gist.github.com/shawnajean/5124cb64cd39fc4a3c383ea1668cbc06

It looks like it's rendering as expected now, so I'm going to close this. Let me know if I missed something though and I can reopen!

shawnajean avatar Mar 22 '17 21:03 shawnajean