Skip to content

Commit f608106

Browse files
ggrossetieclaude
andcommitted
docs(preview): note that custom stylesheets work in VS Code for the Web
Clarify that both `asciidoc.preview.style` and `asciidoc.preview.additionalStyles` (including relative paths) are loaded in the web extension, unlike custom templates, which rely on Node's file system and remain desktop-only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent da5c094 commit f608106

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/modules/ROOT/pages/preview.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ By default, the preview uses the VS Code editor theme (`workbench.colorTheme`).
138138

139139
See xref:settings.adoc#preview[the preview settings] for the full list of options.
140140

141+
[NOTE]
142+
====
143+
Custom stylesheets work in VS Code for the Web (`vscode.dev`, `github.dev`).
144+
Both `asciidoc.preview.style` and `asciidoc.preview.additionalStyles` are loaded through the web extension, including *relative* paths -- they are read via VS Code's virtual file system, so no local file access is required.
145+
This is unlike custom templates (`asciidoc.preview.templates`), which rely on Node's file system and therefore apply only to the desktop preview.
146+
====
147+
141148
[#stylesheet-attribute]
142149
=== The `stylesheet` document attribute
143150

0 commit comments

Comments
 (0)