Skip to content

Outputting IDs into html when they are not needed #806

Closed

Description

@jesus-cortex

Hi,

Using marked in command line and having this markdown file

# This is a test

if I run marked test.md -o test.html this is what I get:

<h1 id="this-is-a-test">This is a test</h1>

Why is id="this-is-a-test" there? What option should I use to prevent that behaviour?

Activity

  1. aaronpk commented on Sep 18, 2016

    @aaronpk

    This is usually seen as desired behavior, in order to easily provide anchor links to sections based on the header text.

  2. sneakernets commented on Nov 28, 2016

    @sneakernets

    is this still in the code? I desperately need a parser that has this feature.

  3. joshbruce commented on Dec 25, 2017

    @joshbruce
    Member
  4. joshbruce commented on Dec 25, 2017

    @joshbruce
    Member

    @sneakernets: I believe it is.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions