iwe
Added
refs_pathmarkdown option — set it toabsoluteto 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#fragmentnow resolve from any directory. Previously such links were dropped from the graph unless the linking file sat at the library root, sotree,stats,retrieve, and backlinks under-reported references.
iwes
Added
refs_pathmarkdown option —absolutemakes 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#fragmentnow 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_pathsetting — previously it wrote the target's full library path, producing a broken link when invoked from a document in a subdirectory.
liwe
Added
RefsPathenum and arefs_pathfield onMarkdownOptions/DjotOptions(defaultRefsPath::Relative), surfaced throughFormatOptions::refs_path();RefsPath::Absoluterenders 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 givenRefsPath, so every link-writing path shares one implementation.
Fixed
Key::from_rel_link_urlresolves 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#fragmentbefore computing the key sonote.md#sectionresolves to the same key asnote.md.