Skip to content

Is it possible to allow just a subset of markdown? #704

Closed

Description

@boop5

title. In my case I want to disable images.

Activity

  1. dead-claudia commented on Jan 11, 2016

    @dead-claudia

    Does this work?

    var marked = require("marked")
    function MyRenderer() {
        marked.Renderer.apply(this, arguments)
    }
    
    MyRenderer.prototype = Object.create(marked.Renderer.prototype)
    
    MyRenderer.prototype.image = function () {
        return "" // don't print images
    }
  2. Feder1co5oave commented on Jan 20, 2016

    @Feder1co5oave
    Contributor

    See #420 or use #660 if you just want to disable the parsing of some type of feature, so that the source will appear at the output as-is.

  3. joshbruce commented on Dec 23, 2017

    @joshbruce
    Member

    Closing to consolidate issues

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