Skip to content

v0.10.0

Latest

Choose a tag to compare

@gimalay gimalay released this 10 Jul 01:00

iwe

Added

  • refs_path markdown option — set it to absolute to write links as root-absolute paths (/dir/note.md) on normalize, instead of the default paths relative to the linking document.

Fixed

  • Root-absolute links (a leading /, such as /dir/note.md) and links carrying a #fragment now resolve from any directory. Previously such links were dropped from the graph unless the linking file sat at the library root, so tree, stats, retrieve, and backlinks under-reported references.

iwes

Added

  • refs_path markdown option — absolute makes document formatting and link completion write links as root-absolute paths (/dir/note.md) instead of paths relative to the linking document.

Fixed

  • Root-absolute links (a leading /) and links carrying a #fragment now resolve from any directory, so backlinks, go-to-definition, and completions see references that were previously dropped unless the linking file sat at the library root.
  • The link code action writes the new link relative to the current document and honors the refs_path setting — previously it wrote the target's full library path, producing a broken link when invoked from a document in a subdirectory.

liwe

Added

  • RefsPath enum and a refs_path field on MarkdownOptions / DjotOptions (default RefsPath::Relative), surfaced through FormatOptions::refs_path(); RefsPath::Absolute renders regular links as root-absolute paths (/dir/note.md) instead of paths relative to the linking document.
  • Key::link_url(relative_to, refs_path) builds a regular link's path for the given RefsPath, so every link-writing path shares one implementation.

Fixed

  • Key::from_rel_link_url resolves a regular link with a leading / from the library root regardless of the linking document's directory (previously a leading / only resolved from a document at the root), and strips a trailing #fragment before computing the key so note.md#section resolves to the same key as note.md.