-
Notifications
You must be signed in to change notification settings - Fork 849
Add support for supportsHtml on markdown strings #1344
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
Comments
Note also that both the very original Markdown invention and the CommonMark spec (the de-facto Markdown standard) clearly allow HTML within Markdown, it's a core part of the idea behind Markdown. I.e. this is not a non-standard syntax "extension". |
It does make sense to add this to LSP. However a client needs to announce the list of supported HTML tags. For VS Code they are defined here: https://github.com/microsoft/vscode/blob/6d2920473c6f13759c978dd89104c4270a83422d/src/vs/base/browser/markdownRenderer.ts#L296 |
PR welcome. |
Implemented and added to the spec. |
@dbaeumer how does this support work? In 14f7c98 I see the client can advertise which tags it supports, but I don't see a way of passing |
For VS Code this is handled the same way as |
Ah, got it - thanks! |
@dbaeumer I don't suppose there's an approx ETA for 3.17? I thought I saw it noted in previous VS Code release notes as being published, but the site still shows 3.16 as current. |
It is not publish. We did publish new next releases with proposed support for notebooks. |
The plan is to have a new 3.17 release the next ~ 2 month |
Got it, thanks! :) |
Just to check as a user who wants to consume documentation that uses inline HTML, when the new release comes out in 2 months, tags should no longer disappear in VSCode Intellisense results? I'm having trouble finding my original issue, but I came here from microsoft/vscode#40607 -- that was resolved last year but hasn't fixed the rendering problem; I think it was only part of the puzzle. ETA: as an end user, how do I check what version of LSP I have? It's not part of the VSCode "About" dialog. |
@thw0rted The LSP client is not a part of core VS Code. The language extension would use |
Thanks for the link. Do you know (or know how to tell) when that lands in a VSCode release? I'm just trying to figure out when the symptom (large portions of some docs are completely removed) is going to be resolved for end users, without getting passed around between the Language Service people and the VSCode people and the TypeScript people. |
@thw0rted As far as I can see, the bundled |
We're approaching 2mo from this comment - is the plan still to publish 3.17 in the near future? (not after a commitment, but a rough estimate will help me plan, there are a few things in 3.17 that would help with some things I'm working on). Thanks :) |
Yes, still the plan. I am waiting for 2 APIs to be finalized in VS Code (which already happened in insider) and then I am good to go beginning of Mai.. |
Great, thanks! |
VS Code is getting a flag on
MarkdownString
to say whether (some basic subset of) HTML can be rendered in addition to markdown:microsoft/vscode#40607
I think it would be useful to support in LSP for the same reason it makes sense there. Some languages let users write their docs in Markdown and they might also include some HTML, but right now it renders literally in the tooltips which is unexpected.
The text was updated successfully, but these errors were encountered: