You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When providing html to vscode.previewHtml the doctype is stripped here in the webview.html. This can prevent some styles from not working properly, such as KaTeX which can cause problems like this here. I was working on a plugin that would allow me to render Markdown and KaTeX in previewHtml when I ran into this issue.
I simply wanted to replace the linked code above with
This does fix the problem for me. But I had issues following the contribution guidelines (probably another issue), and there probably is a better way to handle this.
The text was updated successfully, but these errors were encountered:
@sandy081 not quite. #7628 was a pull request to fix this issue, which we decided to defer since #7656 would fix the issue and was almost ready for prime time. So while this issue is still valid, it shouldn't be soon and probably can be closed.
When providing html to
vscode.previewHtml
the doctype is stripped here in the webview.html. This can prevent some styles from not working properly, such as KaTeX which can cause problems like this here. I was working on a plugin that would allow me to render Markdown and KaTeX in previewHtml when I ran into this issue.I simply wanted to replace the linked code above with
This does fix the problem for me. But I had issues following the contribution guidelines (probably another issue), and there probably is a better way to handle this.
The text was updated successfully, but these errors were encountered: