Skip to content

[Headings]: Consolidate issues #981

Closed

Description

@joshbruce

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

Activity

  1. added
    L2 - annoying
    on Dec 25, 2017
  2. added this to the milestone on Dec 25, 2017
  3. changed the title [-]Consolidate heading issues[/-] [+][Headers]: Consolidate issues[/+] on Dec 25, 2017
  4. Feder1co5oave commented on Jan 10, 2018

    @Feder1co5oave
    Contributor

    Recap of all still relevant issues concerning headings:

  5. changed the title [-][Headers]: Consolidate issues[/-] [+][Headings]: Consolidate issues[/+] on Feb 22, 2018
  6. added
    good first issue
    on Feb 28, 2018
  7. marekdedic commented on Mar 13, 2018

    @marekdedic

    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.

  8. Feder1co5oave commented on Mar 13, 2018

    @Feder1co5oave
    Contributor

    @GenaBitu you can parse with gfm: false

  9. marekdedic commented on Mar 13, 2018

    @marekdedic

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

  10. Feder1co5oave commented on Mar 13, 2018

    @Feder1co5oave
    Contributor

    Exactly

  11. marekdedic commented on Mar 13, 2018

    @marekdedic

    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?

  12. UziTech commented on Mar 13, 2018

    @UziTech
    Member

    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.

  13. removed this from the milestone on Apr 4, 2018
  14. added
    epic
    and removed
    L2 - annoying
    on Apr 4, 2018
  15. added this to the v0.x milestone on Apr 4, 2018
  16. removed
    good first issue
    on Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category: headingsepic

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions