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

[Headings]: Consolidate issues #981

Closed
joshbruce opened this issue Dec 25, 2017 · 7 comments
Closed

[Headings]: Consolidate issues #981

joshbruce opened this issue Dec 25, 2017 · 7 comments
Labels
category: headings epic A large goal or objective for a major release.
Milestone

Comments

@joshbruce
Copy link
Member

This issue reference other issues related to the processing of headings. See #956

@joshbruce joshbruce added the L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue label Dec 25, 2017
@joshbruce joshbruce added this to the 0.4.0 - No known defects milestone Dec 25, 2017
@joshbruce joshbruce changed the title Consolidate heading issues [Headers]: Consolidate issues Dec 25, 2017
@Feder1co5oave
Copy link
Contributor

Feder1co5oave commented Jan 10, 2018

Recap of all still relevant issues concerning headings:

@Feder1co5oave Feder1co5oave changed the title [Headers]: Consolidate issues [Headings]: Consolidate issues Feb 22, 2018
@joshbruce joshbruce added the good first issue Something easy to get started with label Feb 28, 2018
@marekdedic
Copy link

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
Copy link
Contributor

@GenaBitu you can parse with gfm: false

@marekdedic
Copy link

@Feder1co5oave Yes, but then you don't get the rest of GFM, right?

@Feder1co5oave
Copy link
Contributor

Exactly

@marekdedic
Copy link

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
Copy link
Member

UziTech commented Mar 13, 2018

You could create an extension as an npm package that could be shared

const marked = require('marked-no-header-space')(require('marked'));

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.

@joshbruce joshbruce removed this from the 0.4.0 - No known defects milestone Apr 4, 2018
@joshbruce joshbruce added epic A large goal or objective for a major release. and removed L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue labels Apr 4, 2018
@joshbruce joshbruce added this to the v0.x milestone Apr 4, 2018
@joshbruce joshbruce removed the good first issue Something easy to get started with label Apr 9, 2018
@UziTech UziTech closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: headings epic A large goal or objective for a major release.
Projects
None yet
Development

No branches or pull requests

4 participants