charmbracelet / glow

Render markdown on the CLI, with pizzazz! 💅🏻
MIT License
15.88k stars 344 forks source link

glow can't render markdown but renders perfectly on GitHub and https://markdownlivepreview.com/ #618

Closed jeffschwartz closed 2 months ago

jeffschwartz commented 3 months ago

Describe the bug glow can't render included markdown but included markdown renders perfectly on GitHub and https://markdownlivepreview.com/

Setup Please complete the following information along with version numbers, if applicable.

To Reproduce Steps to reproduce the behavior:

  1. Run glow with included file. It wont render correctly but does render perfectly on GitHub and https://markdownlivepreview.com/

Source Code bootstrap.md

Expected behavior To render perfectly like when rendered on GitHub and https://markdownlivepreview.com/

Screenshots

Additional context

meowgorithm commented 2 months ago

Hi! The code you're referencing (this) is mostly HTML. Unlike a web browser, Glow will only parse and render Markdown.

If we've got this wrong, please feel free to reopen.

jeffschwartz commented 2 months ago

@meowgorithm thank you for your response. The markdown document that I provided is a mix of markdown and HTML. Markdown has always supported HTML and I respectfully can't understand your closing this issue unless you are saying that Glow isn't fully makrdown compliant. Have you tried rendering this document and exploring its result in the browser's dev tools? As I mentioned in my OP, GitHub has no problem rendering the markdown document that I provided nor do numerous online markdown preview tools. I respectfully suggest that whatever library you are using to parse markdown is the underlying issue. Many of these libraries are broken, not well maintained or even abandoned projects.

jeffschwartz commented 2 months ago

@meowgorithm I failed to mention that if you are claiming that Glow isn't fully markdown compliant then I would respectfully urge you to state that on your website and in Glow's documentation.