Skip to content

Commit

Permalink
feat: latex classToCommand option
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahhh committed Sep 14, 2024
1 parent c4290ef commit a82887a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/compiler/src/output/latex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export async function outputLatex(ast, context, options) {
pdf = true,
stdout = false,
latexDir = path.join(pdf ? tempDir : outputDir, 'latex'),
vspace = {}
vspace = {},
classToCommand,
} = options;

const articleName = path.parse(inputFile).name;
Expand Down Expand Up @@ -71,7 +72,8 @@ export async function outputLatex(ast, context, options) {
['bold', 'textbf'],
['strong', 'textbf'],
['demi', 'textbf'],
['underline', 'uline']
['underline', 'uline'],
...classToCommand || [],
]),
sizes: new Map([
['tiny', 'tiny'],
Expand Down

0 comments on commit a82887a

Please sign in to comment.