Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Fix conversion code from MarkedString to IMarkdownString in hovers #5

Merged
merged 1 commit into from
Apr 9, 2018

Conversation

rcjsuen
Copy link
Contributor

@rcjsuen rcjsuen commented Apr 6, 2018

The conversion code for hovers ignored MarkedString's langage property. It was incorrectly referencing its value property and caused the content to be rendered in a strange way. The code has been fixed to use the language property and now creates the code block correctly.

The problem can be reproduced and the fix verified with the test/index.html test page by hovering over stuff like .float-left on line 38 or .highlight on line 46.

See microsoft/monaco-editor#805.

The conversion code for hovers ignored MarkedString's `language`
property which caused the content to be rendered incorrectly. The
code has been corrected to honour the property and now creates the
code block correctly.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
@alexdima
Copy link
Member

alexdima commented Apr 9, 2018

👍 Thank you!

@rcjsuen rcjsuen deleted the css-markdown branch April 9, 2018 10:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants