Skip to content

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

@Trokkin

Description

@Trokkin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions