.md to .html conversion does not seem to work properly #22095
-
Ok, this is my github md file in repo: https://github.com/flemmingss/flemmingss.github.io/blob/master/tutorials/deluge-on-ubuntu-server.md when displayed in github it all works. But when i show it in “pages” some of the formating are not displayed. https://flemmingss.github.io/tutorials/deluge-on-ubuntu-server.html As you se, instad of converting to html it display the markup taggs like normal content. How can i fix this? I want it to show correct both in the repositorie and page. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I’ve submitted a Pull Request with some changes I recommend. The reason for the differences in rendering is because github.com uses CommonMark for its Markdown rendering whereas GitHub Pages uses Jekyll and Kramdown for its Markdown rendering. Because the two components use different rendering engines, there are differences in interpretation of Markdown documents. However, incorporating the changes I suggested in the PR above should take care of those problems for you. I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
A post was split to a new topic: Rendering of a specific page doesn’t seem to work? |
Beta Was this translation helpful? Give feedback.
I’ve submitted a Pull Request with some changes I recommend.
The reason for the differences in rendering is because github.com uses CommonMark for its Markdown rendering whereas GitHub Pages uses Jekyll and Kramdown for its Markdown rendering. Because the two components use different rendering engines, there are differences in interpretation of Markdown documents. However, incorporating the changes I suggested in the PR above should take care of those problems for you.
I hope that helps!