I have a file which contains YAML at the top and asciidoc at the bottom. The yaml is surrounded by two lines of ---. The file extension is yaml which is required by the application where it's used.
The only way i know to get a preview out of vscode is to manually rename the file every time i need one and rename it back afterwards.
Is there a way to open the asciidoc preview in vscode while ignoring its extension, e.g. giving a hint, add a configuration or something similar? The docs only describe that
The extension activates automatically when opening an AsciiDoc file (.adoc, .ad, .asc, .asciidoc).
Here's a example file:
---
# yaml here
---
asciidoc here