Code Monkey home page Code Monkey logo

Comments (8)

hugmanrique avatar hugmanrique commented on August 30, 2024 1

Please read https://www.regular-expressions.info/catastrophic.html, we've run into a catastrofic backtrack.

from markdown-to-jsx.

pravdomil avatar pravdomil commented on August 30, 2024

inspiration

https://github.com/markdown-it/markdown-it/blob/c57f593b2395df0e12c1d7fb8c9cebb3f3920ff3/lib/common/html_re.js#L23

https://github.com/commonmark/commonmark.js/blob/76de355590604d0375305c4b9ac790f169f98691/lib/common.js#L26

from markdown-to-jsx.

quantizor avatar quantizor commented on August 30, 2024

from markdown-to-jsx.

pravdomil avatar pravdomil commented on August 30, 2024

I have a valid svg on the begining but that's a section of it that is passed into const parsed = rule.parse(capture, nestedParse, state); during html blocks parsing.

https://github.com/probablyup/markdown-to-jsx/blob/1e3b1d5275a936ca219be8fa5ea6354d6984eda5/index.js#L402

from markdown-to-jsx.

quantizor avatar quantizor commented on August 30, 2024

This should be handled by f0e5355

If you want to check out the deploy preview: https://deploy-preview-156--unruffled-neumann-76d9b9.netlify.com/

from markdown-to-jsx.

pravdomil avatar pravdomil commented on August 30, 2024

@probablyup great!

In meanwhile I created same parser as yours by using markdown-it and htmlparser2. I will publish it to GitHub soon.

from markdown-to-jsx.

quantizor avatar quantizor commented on August 30, 2024

Fixed in master, will do a minor release soon.

from markdown-to-jsx.

quantizor avatar quantizor commented on August 30, 2024

Released as 6.5.0

from markdown-to-jsx.

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.