The normalizeHastElement helper and its internal _rebaseHastElement have been promoted to @quartz-community/utils so that plugins can consume the same cross-slug HAST rebasing logic Quartz core uses for transclude expansion. Previously they lived only in Quartz's internal util/path module, which out-of-tree plugins (e.g. canvas-page, whose buildEmbeddedContent embeds vfile.data.htmlAst from arbitrary pages) could not import from. normalizeRelativeURLs and its DOM-element sibling _rebaseHtmlElement stay local - those operate on DOM Elements at runtime, not HAST AST nodes, and belong with Quartz's DOM-specific code.
200 KiB
200 KiB