You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About the requirement of a space after # for headings: I know the space is required by the spec, but why not add an option allowing the space to be omitted (defaulting to false, i. e. requiring the space). I am using this in an editor for relative noobs and would prefer to have the option, while others might stick to the spec.
Well, what if you want all the bells and whistles of GFM and want non-spec-conformity on just this one thing?
Upon reading the CoC, I am thinking about the pros and cons of doing it as an extension - by the CoC, extension is the preferred choice (over adding an option), however, judging by the amount of issues around this, this is a pretty common request and an option would solve this for everybody, whereas an extension cannot be shared with others who might prefer such behaviour. Am I right?
Activity
[-]Consolidate heading issues[/-][+][Headers]: Consolidate issues[/+]Feder1co5oave commentedon Jan 10, 2018
Recap of all still relevant issues concerning headings:
#and the text, per spec. Duplicates: [Bug] Heading works when using the "#" togeter the text #909 Bug in parsing of headers #729 H3 not rendered when space is missing #692 Header processes differently on client and server #687 Header not formating for "# [text]" but only "#[text]" #670-,Chinese? #1042[-][Headers]: Consolidate issues[/-][+][Headings]: Consolidate issues[/+]marekdedic commentedon Mar 13, 2018
About the requirement of a space after # for headings: I know the space is required by the spec, but why not add an option allowing the space to be omitted (defaulting to false, i. e. requiring the space). I am using this in an editor for relative noobs and would prefer to have the option, while others might stick to the spec.
Will try to post a PR for this.
Feder1co5oave commentedon Mar 13, 2018
@GenaBitu you can parse with
gfm: falsemarekdedic commentedon Mar 13, 2018
@Feder1co5oave Yes, but then you don't get the rest of GFM, right?
Feder1co5oave commentedon Mar 13, 2018
Exactly
marekdedic commentedon Mar 13, 2018
Well, what if you want all the bells and whistles of GFM and want non-spec-conformity on just this one thing?
Upon reading the CoC, I am thinking about the pros and cons of doing it as an extension - by the CoC, extension is the preferred choice (over adding an option), however, judging by the amount of issues around this, this is a pretty common request and an option would solve this for everybody, whereas an extension cannot be shared with others who might prefer such behaviour. Am I right?
UziTech commentedon Mar 13, 2018
You could create an extension as an npm package that could be shared
require('marked-no-header-space')could return a function that extends marked then returns the extended marked.Problem solved for anyone who wants it and we don't have to work around another option that is not in the spec.