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

YAML Preamble is displayed in on-hover preview, not in built-in preview #636

Open
Trokkin opened this issue May 21, 2023 · 0 comments
Open

Comments

@Trokkin
Copy link

Trokkin commented May 21, 2023

image

I glanced through the sources but couldn't find where the plain text provided to hover is being rendered. Seems that both are handled inside VSCode, but built-in preview is smarter than on-hover one.

It could be fixed in ReferenceHoverProvider.ts:57 by adding something like .replace(/^---[^]*?---/, ""). It fixed the issue for me.

On a tangent, the extension acknowledge links inside YAML, which is useful.

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

1 participant