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

Add "no-html" prop #2

Closed
nothingismagick opened this issue Apr 1, 2019 · 1 comment
Closed

Add "no-html" prop #2

nothingismagick opened this issue Apr 1, 2019 · 1 comment

Comments

@nothingismagick
Copy link

markdown-it enables parsing of html. This should be optional and (in my opinion) an opt-out.

e.g. in the render funciton:

  render (h) {
    const opts = {
      html: true || noHtml,
      linkify: true,
      typographer: true,
      breaks: true,
      highlight
    }
@hawkeye64
Copy link
Member

I did you one better.
New props:

noHtml: Boolean,
    // no links
    noLink: Boolean,
    // no automatic links
    noLinkify: Boolean,
    // no typographer
    noTypographer: Boolean,
    // no breaks
    noBreaks: Boolean,
    // no code highlights
    noHighlight: Boolean,
    // no emojies
    noEmoji: Boolean,
    // no subscript
    noSubscript: Boolean,
    // no superscript
    noSuperscript: Boolean,
    // no footnotes
    noFootnote: Boolean,
    // no Deflists
    noDeflist: Boolean,
    // no abbreviations
    noAbbreviation: Boolean,
    // no inserts
    noInsert: Boolean,
    // no marks
    noMark: Boolean,
    // no images
    noImage: Boolean,
    // no tasklists
    noTasklist: Boolean,
    // no containers
    noContainer: Boolean

Will be in release v1.0.0-alpha.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants