GithubHelp home page GithubHelp logo

HTML not rendered about markdown-preview HOT 4 CLOSED

atom avatar atom commented on August 26, 2024
HTML not rendered

from markdown-preview.

Comments (4)

izuzak avatar izuzak commented on August 26, 2024

This is happening because marked is being called with sanitize: true. With that option set to true, marked will skip all HTML in the input.

It'd be great if marked could sanitize only some HTML tags (e.g. <script>), but it seems that's not possible currently.

from markdown-preview.

prydie avatar prydie commented on August 26, 2024

I suggest that it is more appropriate to call marked with sanitize: false for our usage scenario as sanitisation is only appropriate in a context where the author is untrusted and when using their editor an author is presumably trusted.

from markdown-preview.

prydie avatar prydie commented on August 26, 2024

See PR: #59

from markdown-preview.

kevinsawicki avatar kevinsawicki commented on August 26, 2024

This will be fixed in the next Atom release, 0.93.0

from markdown-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.