We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
relfilesuffix
1 parent 6230a0b commit 58eac4fCopy full SHA for 58eac4f
src/test/asciidoctorWebViewConverter.test.ts
@@ -54,7 +54,13 @@ async function testAsciidoctorWebViewConverter (
54
antoraDocumentContext,
55
undefined
56
)
57
- const html = processor.convert(input, { converter: asciidoctorWebViewConverter })
+
58
+ const html = processor.convert(input, {
59
+ converter: asciidoctorWebViewConverter,
60
+ // required for navigation between source files in preview
61
+ // see: https://docs.asciidoctor.org/asciidoc/latest/macros/inter-document-xref/#navigating-between-source-files
62
+ attributes: { relfilesuffix: '.adoc' },
63
+ })
64
assert.strictEqual(html, expected)
65
}
66
0 commit comments