-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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/
Metadata
Metadata
Assignees
Labels
No labels