Releases: ravila4/quarto-link-previews
Release list
v0.2.0
Options can now be written under a top-level extensions: key, as extensions: link-previews:. That is where editor tooling looks for them, so the new _schema.yml and _snippets.json give Quarto Wizard autocompletion, hover documentation, validation, and snippets for the five options. The bare top-level link-previews: block still works: keys from both places are combined, and the nested one wins a tie.
Fixes popover placement on a link that wraps across two lines. Such a link has one client rect per line and its bounding box is their union, which spans most of the text column, so hovering the tail of one line could open the preview a full column width away, too far to reach before the pointer left the link and the popover hid. It now anchors to the line box the pointer is in.
Adds a root example.qmd with the smallest working setup.
v0.1.5
Fixes the banner bleed stopping ~two paddings short of the popover's right edge: the banner sits inside the title-block header (a page-columns element), so the grid flatten's child width cap was constraining it. One-line fix: max-width: none on the banner inside previews.
v0.1.4
Styling pass on the popover:
- Border derives from the text color (30% mix) instead of Bootstrap's stock gray, which disappeared against themes with a nearby background; the box also gets an elevation shadow.
- Preview text rides tippy's 0.875rem instead of shrinking a further 15%.
- Banner title blocks bleed to the popover edges with their own internal padding, fixing title text sitting flush against the color boundary (0.1.3 regression). Grid flatten now uses !important — Quarto's body-class grid selectors out-specify preview-scoped rules.
- New styling hooks on
:root:--link-preview-font-size,--link-preview-border-color,--link-preview-shadow.