Skip to content

Commit e201be8

Browse files
skotnicznymarijnh
authored andcommitted
--epub option provides a book version
1 parent 760804d commit e201be8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/render_html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (!file) throw new Error("No input file")
1717
let chapter = /^\d{2}_([^\.]+)/.exec(file) || [null, "hints"]
1818

1919
let {tokens, metadata} = transformTokens(require("./markdown").parse(fs.readFileSync(file, "utf8"), {}), {
20-
defined: ["interactive", "html"],
20+
defined: epub ? ["book", "html"] : ["interactive", "html"],
2121
takeTitle: true,
2222
index: false
2323
})

0 commit comments

Comments
 (0)