github / cmark-gfm

GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C
Other
875 stars 171 forks source link

Support Non-Breaking Spaces in GitHub Flavoured Markdown #346

Open noah-nuebling opened 11 months ago

noah-nuebling commented 11 months ago

Hi!

I'm working on an autogenerated markdown file for my repo. I want to have non-breaking spaces in the rendered markdown on the GitHub website. However, I can't figure out a way to achieve this.

Using the markdown previewer in VSCode with the "Markdown Preview Github Styling" plugin, it looks exactly how I want, but on GitHub I can't get it to work.

Source code

CleanShot 2023-08-03 at 01 00 17@2x

GitHub

CleanShot 2023-08-03 at 01 00 38@2x

VSCode (How I want it to look)

CleanShot 2023-08-03 at 01 00 55@2x
noah-nuebling commented 11 months ago

New info: The nbsp's worked for a little bit! This was after the theme switched from light mode to dark mode during time of day changing. Then I manually switched to darkmode and it was broken again. I switched to light mode again and it it is still not working. I don't know what's going on. I was using the 'Light default' and 'Dark default' GitHub themes.