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

Commonmark doesn't seem to work #145

Open
alixedi opened this issue Apr 9, 2020 · 1 comment
Open

Commonmark doesn't seem to work #145

alixedi opened this issue Apr 9, 2020 · 1 comment

Comments

@alixedi
Copy link

alixedi commented Apr 9, 2020

I am trying to pass a custom markdownit prop with the commonmark param like so:

const content = `This should mean that the following:
<strong>Hello World</strong>
results in the same output as:
**Hello World**
`;

<Markdown markdownit={MarkdownIt('commonmark')}>{ content }</Markdown>

I am getting the following error:

html_block renderRule not defined example: <Markdown rules={renderRules}>

What am I missing?

@chriswitko
Copy link

@alixedi did you resolve this issue? can you share the solution?

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