Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers following each other aren't rendered #1038

Closed
ms-studio opened this issue Mar 30, 2017 · 2 comments
Closed

Headers following each other aren't rendered #1038

ms-studio opened this issue Mar 30, 2017 · 2 comments

Comments

@ms-studio
Copy link

ms-studio commented Mar 30, 2017

Try to create a README with the following content:

# A

## B

### C

#### D

I would expect to see those rendered as H1, H2, H3 and H4 headers.

What actually happens: A and C get rendered, but B and D don't.

Here is another example, where some of the headers mysteriously don't get rendered: https://github.com/ms-studio/markdown-testing/blob/master/headers.md

The same, more reduced: https://github.com/ms-studio/markdown-testing/blob/master/headers2.md

@kivikakk
Copy link
Contributor

kivikakk commented Apr 3, 2017

You have non-breaking spaces between the # character and the rest of the header; try replacing them with regular spaces. Per the CommonMark spec, a space is only a regular space (ASCII character 32), not including non-breaking spaces, and headings must have # characters followed by spaces.

@kivikakk kivikakk closed this as completed Apr 3, 2017
@ms-studio
Copy link
Author

Wow, thank you for spotting this!

I am generally typing on a qwertz keyboard where the # is produced with alt+3, which makes it easy to follow it with a non-breaking space. Also, my usual markdown editor (ByWord) doesn't make a difference and renders the headers as usual. That's why I was thinking this was a Github rendering issue.

ms-studio added a commit to greyscalepress/manifestos that referenced this issue Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants