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

HTML=true in markdownOptions not working #21

Open
amiccolis opened this issue Apr 18, 2018 · 1 comment
Open

HTML=true in markdownOptions not working #21

amiccolis opened this issue Apr 18, 2018 · 1 comment

Comments

@amiccolis
Copy link

Setting html: true in markdownOptions doesn't seem to work.

Here's a simple example:
I would expect the <a> to render as a link, but it renders as text instead.

import React from "react";
import { render } from "react-dom";
import MDReactComponent from "markdown-react-js";

const App = () => (
  <div>
    <MDReactComponent
      text="hello. <a href='#'>Link</a>"
      markdownOptions={{ html: true }}
    />
  </div>
);

render(<App />, document.getElementById("root"));

https://codesandbox.io/s/j4r51776l5

This is working in markdown-it with html enabled
https://markdown-it.github.io/

@atav32
Copy link

atav32 commented Jul 10, 2018

Would also like to see this working

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