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

Hashtag without following space shouldn't be interpreted as header. #328

Closed
mawek opened this issue Jan 14, 2017 · 3 comments
Closed

Hashtag without following space shouldn't be interpreted as header. #328

mawek opened this issue Jan 14, 2017 · 3 comments
Assignees

Comments

@mawek
Copy link

mawek commented Jan 14, 2017

It is common to have twitter like tags in text and they shouldn't be interpreted as headers as mentioned here

@tivie tivie self-assigned this Jan 15, 2017
@tivie tivie added the Invalid label Jan 15, 2017
@tivie
Copy link
Member

tivie commented Jan 15, 2017

  1. Showdown follows the original markdown spec and not commonmark (which is a spinoff or flavor).

  2. # followed by text is only interpreted as an header if # starts a newline, not in the middle of the text

  3. A space between # and the text can become mandatory for headers if you enable the option requireSpaceBeforeHeadingText, as stated in showdown's documentation:

    requireSpaceBeforeHeadingText: (boolean) [default false] Makes adding a space between # and the header text mandatory (since v1.5.3)

@tivie tivie closed this as completed Jan 15, 2017
@tivie
Copy link
Member

tivie commented Jan 15, 2017

Duplicate #277

@mawek
Copy link
Author

mawek commented Jan 15, 2017

Thanks for quick response. I missed the requireSpaceBeforeHeadingText option.

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