Closed lask79 closed 9 months ago
Would you be able to add a test case in https://github.com/asciidoctor/asciidoctor-vscode/blob/master/src/test/asciidoctorWebViewConverter.test.ts to test with and without an antoraDocumentContext
?
Sure I will try to do that
I added testcases but I cannot test them locally so please run the test and tell me if there needs to be changed something.
I am getting the following error when I run the tests (independent from my change): Exit code: SIGTRAP
I am currently woring on a WSL2 - Ubuntu Image with VSCode Remote Development. Maybe that is related.
Ok, I am now able to run the Tests using the debugger. Now I have to figure out to test the content div. I will take a look later.
The reason is that we are using const html = processor.convert(input, { converter: asciidoctorWebViewConverter })
. In this case, Asciidoctor will convert inline markup: https://docs.asciidoctor.org/asciidoctor/latest/api/convert-strings/#convert-inline-markup-only
You should create a new test case to convert a standalone document: https://docs.asciidoctor.org/asciidoctor/latest/api/convert-strings/#standalone-output
const html = processor.convert(input, { converter: asciidoctorWebViewConverter, standalone: true })
fixed tests
@ggrossetie Is anything missing from my side to merge this?
No all good 👍🏻
Resolves #844