Skip to content

Releases: ravila4/quarto-link-previews

v0.2.0

Choose a tag to compare

@ravila4 ravila4 released this 03 Aug 00:05

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

v0.1.5 Pre-release
Pre-release

Choose a tag to compare

@ravila4 ravila4 released this 02 Aug 04:52

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

v0.1.4 Pre-release
Pre-release

Choose a tag to compare

@ravila4 ravila4 released this 02 Aug 04:46

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.

v0.1.3

v0.1.3 Pre-release
Pre-release

Choose a tag to compare

@ravila4 ravila4 released this 01 Aug 22:36

Preview content now fits the popover: page-columns grids flatten, code wraps, wide tables scroll internally, code-tools buttons hidden. See CHANGELOG.md.

v0.1.2

v0.1.2 Pre-release
Pre-release

Choose a tag to compare

@ravila4 ravila4 released this 01 Aug 21:41

Fixes redirect-base URL rewriting (Quarto aliases), strips inline on* handlers from preview content, adds config diagnostics for invalid selectors, and aligns quarto-required with the CI-tested floor. See CHANGELOG.md.

v0.1.1

v0.1.1 Pre-release
Pre-release

Choose a tag to compare

@ravila4 ravila4 released this 01 Aug 21:35

Protocol-filters URLs rewritten into previews (drops javascript: hrefs from fetched content), caps the fetch cache at 30 entries, and no-ops on file:// pages. See CHANGELOG.md.

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@ravila4 ravila4 released this 01 Aug 21:19

First release: hover previews for internal links on Quarto websites. See CHANGELOG.md for details.