Skip to content

fix: use Asciidoctor logger for chart macro read failures - #695

Merged
ggrossetie merged 1 commit into
asciidoctor:mainfrom
ggrossetie:fix/chart-macro-logger
Jul 31, 2026
Merged

fix: use Asciidoctor logger for chart macro read failures#695
ggrossetie merged 1 commit into
asciidoctor:mainfrom
ggrossetie:fix/chart-macro-logger

Conversation

@ggrossetie

Copy link
Copy Markdown
Member

Route the warning through doc.getLogger() instead of console.warn, and drop the outdated XMLHttpRequest/Manifest V3 explanation since fetch is now used instead.

Also note the actual root cause as a FIXME comment: readAsset does not support file:// URLs (the leading / is lost), see asciidoctor/asciidoctor.js#1865.

Route the warning through doc.getLogger() instead of console.warn, and
drop the outdated XMLHttpRequest/Manifest V3 explanation since fetch is
now used. Note the real cause (readAsset losing the leading / on
file:// URLs, see asciidoctor/asciidoctor.js#1865) as a FIXME.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ggrossetie
ggrossetie merged commit 6c62fe4 into asciidoctor:main Jul 31, 2026
2 checks passed
@ggrossetie
ggrossetie deleted the fix/chart-macro-logger branch July 31, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant