We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is some behavior that I wouldn't expect when working with markdown with html tags. I added the below tests to index.component.spec.tsx
index.component.spec.tsx
it('test for markdown paragraph and html tags', () => { render( <Markdown options={{ overrides: { p: { component: 'p', }, }, }} > {'Other text <u>Underline</u>\n'} </Markdown> ) expect(root.innerHTML).toMatchInlineSnapshot(` <p> Other text <u> Underline </u> </p> `) }) it('test for markdown paragraph and start line with html tag', () => { render( <Markdown options={{ overrides: { p: { component: 'p', }, }, }} > {'<u>Underline</u> Other text\n'} </Markdown> ) expect(root.innerHTML).toMatchInlineSnapshot(` <p> <u> Underline </u> Other text </p> `) })
The first test passes as expected. However the second test generates the following:
<div> <u> Underline </u> Other text </div>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is some behavior that I wouldn't expect when working with markdown with html tags. I added the below tests to
index.component.spec.tsx
The first test passes as expected. However the second test generates the following:
The text was updated successfully, but these errors were encountered: