Coder Social home page Coder Social logo

Comments (6)

okonet avatar okonet commented on May 24, 2024

I also saw you've skipped the appropriate test in spec file. Is this a known issue? Any idea how to solve it?

from markdown-to-jsx.

quantizor avatar quantizor commented on May 24, 2024

from markdown-to-jsx.

wooorm avatar wooorm commented on May 24, 2024

@okonet What’s your HTML use case?
If you’re allowing HTML in markdown on the client side, it’s essentially impossible doing it safely.

However, if you’re using it to generate some virtual dom “server-side”, you could go remark-parse -> remark-rehype - rehype-raw -> rehype-react (something like this).

from markdown-to-jsx.

okonet avatar okonet commented on May 24, 2024

@probablyup thanks for answering! I thought it might be a hard problem to solve since raw HTML is tricky to convert to JSX.

@wooorm thanks for chiming in. I'm building the styleguide/documentation for react-dropzone: https://react-dropzone.netlify.com from the README.md that has some HTML in it https://raw.githubusercontent.com/okonet/react-dropzone/master/README.md (scroll down to the end).

I discovered this issue then I was trying to center the logo by wrapping it and the heading with <div align="center"></div>

from markdown-to-jsx.

quantizor avatar quantizor commented on May 24, 2024

from markdown-to-jsx.

quantizor avatar quantizor commented on May 24, 2024

Link href and/or img src I mean.

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.