Skip to content

Commit 89e6070

Browse files
committed
basic asciidoc article test
1 parent b2c1a3b commit 89e6070

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Test Asciidoc Article
3+
author:
4+
- Norah Jones
5+
- Kirk Cousins
6+
format:
7+
asciidoc: default
8+
_quarto:
9+
tests:
10+
asciidoc:
11+
ensureFileRegexMatches:
12+
- ["= Test Asciidoc Article"] # looks like asciidoc
13+
- [":doctype: book"] # not a book
14+
---
15+
16+
## Section 1
17+
18+
Now is the time for all good men to come to the aide of their country. The quick brown fox jumps over the lazy dog.

tests/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export function outputForInput(input: string, to: string) {
4141
if (baseFormat === "jats") {
4242
outputExt = "xml";
4343
}
44+
if (baseFormat === "asciidoc") {
45+
outputExt = "adoc";
46+
}
4447

4548
const outputPath = join(dir, `${stem}.${outputExt}`);
4649
const supportPath = join(dir, `${stem}_files`);

0 commit comments

Comments
 (0)