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

Markdown code-block not working on IE 11 #406

Closed
krishna-vempati opened this issue Jan 12, 2018 · 3 comments
Closed

Markdown code-block not working on IE 11 #406

krishna-vempati opened this issue Jan 12, 2018 · 3 comments

Comments

@krishna-vempati
Copy link

My swagger documentation contains ``` to illustrate code examples, which are not necessarily related to API operations.

The code examples render well on Chrome, Firefox or Safari. However, the rendering fails on IE 11 with the following error:

screen shot 2018-01-12 at 2 05 17 pm

image

I am using v1.19.3 to render the documentation. IE version is 11.0.9600.18817.

If there is a workaround to move the code sample to the third column, I can live with that :) Thanks.

screenshot_1

@zeroorone-huff
Copy link

We have experienced the same issue. The bug in IE11 appears to be caused by using the parentElement function in the HTMLEscape method (https://github.com/Rebilly/ReDoc/blob/master/lib/utils/md-renderer.ts#L11). Using parentNode appears to resolve the issue.

@RomanHotsiy
Copy link
Member

@krishna-vempati thanks for the bug report.
@zeroorone13 thanks so much for investigating this!

I will release a new package soon.

@krishna-vempati
Copy link
Author

Awesome! Thank you so much. I see you have released 1.20.0 already.

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