Skip to content

Commit aa8524c

Browse files
committed
Make sure render_latex defines 'commercial' when given --nostarch
1 parent 88aed47 commit aa8524c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/render_latex.js

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

1313
let {tokens} = transformTokens(require("./markdown").parse(fs.readFileSync(file, "utf8"), {}), {
14-
defined: ["book", "tex"],
14+
defined: ["book", "tex"].concat(noStarch ? ["commercial"] : []),
1515
strip: "hints",
1616
texQuotes: true,
1717
moveQuotes: noStarch,

0 commit comments

Comments
 (0)