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

Showdown fails to parse anything inside a div or span? #976

Open
jeffersoneagley opened this issue Mar 18, 2023 · 2 comments
Open

Showdown fails to parse anything inside a div or span? #976

jeffersoneagley opened this issue Mar 18, 2023 · 2 comments

Comments

@jeffersoneagley
Copy link

jeffersoneagley commented Mar 18, 2023

Hi,

I have the following sample input somebody provided:

Input:

<div data-wrapper="true" style="font-family:'Segoe UI','Helvetica Neue',sans-serif; font-size:9pt">\n<div><span style="font-size:10pt"><u>sending this message from</u><strong> the new </strong><em>rich text editor</em></span></div>\n</div>

Actual:

<div data-wrapper=\\"true\\" style=\\"font-family:'Segoe UI','Helvetica Neue',sans-serif; font-size:9pt\\"><div><span style=\\"font-size:10pt\\"><u>sending this message from</u><strong> the new </strong><em>rich text editor</em></span></div></div>

Expected:

__sending this message from__ ** the new ** *rich text editor*

It's an output from a Dynamics CRM rich text editor, which unfortunately includes a div and span around it. These seem to break Showdown's ability to parse to Markdown. Also underlines don't work either HTML->MD.

Am I missing something?

@brunolm
Copy link

brunolm commented Dec 5, 2023

Something as simple as <div>hello world</div> doesn't work. This issue has been open since March, I guess we need to find an alternative.

@stoefln
Copy link

stoefln commented Dec 8, 2023

Same here

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

3 participants