Skip to content

Provide some configurations for enabling/disabling some marked features #21

Closed

Description

@thomasfr

Sometimes you do not want to parse and convert all markdown into html.
Maybe someone do not want links,etc. to be parsed. node-discount does it this way.

Kind regards

Activity

  1. chjj commented on Jan 10, 2012

    @chjj
    Member

    This is a good idea. Something I've considered for a while: #5

    I want to do it in a way that allows marked to be more hackable instead of adding options. I'll leave this open for now.

  2. chjj commented on Jan 8, 2013

    @chjj
    Member

    Although marked has become more extensible in the past year, it's still not perfect extensibility-wise.

    Maybe someone do not want links

    For example, if you don't want links parsed you could do:

    marked.InlineLexer.rules.link = function() {};

    This has been discussed in a lot of issues now, although this is one of the first issues that mentioned it, I'm going to close it for now. When this does happen it will be discussed.

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