Skip to content

Commit ed148f3

Browse files
skotnicznymarijnh
authored andcommitted
Remove hints from chapters in e-book
1 parent 2bf7fdc commit ed148f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/render_html.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ let chapter = /^\d{2}_([^\.]+)/.exec(file) || [null, "hints"]
1818

1919
let {tokens, metadata} = transformTokens(require("./markdown").parse(fs.readFileSync(file, "utf8"), {}), {
2020
defined: epub ? ["book", "html"] : ["interactive", "html"],
21+
strip: epub ? "hints" : "",
2122
takeTitle: true,
2223
index: false
2324
})

0 commit comments

Comments
 (0)