diff --git a/.changeset/silver-carrots-allow.md b/.changeset/silver-carrots-allow.md index bbced4811..77f0e40ec 100644 --- a/.changeset/silver-carrots-allow.md +++ b/.changeset/silver-carrots-allow.md @@ -1,7 +1,7 @@ --- -"myst-transforms": minor -"myst-common": patch -"myst-cli": patch +'myst-transforms': minor +'myst-common': patch +'myst-cli': patch --- Add new mermaid-conversion transform diff --git a/packages/myst-cli/src/build/tex/single.ts b/packages/myst-cli/src/build/tex/single.ts index 963c320c5..a058eb90e 100644 --- a/packages/myst-cli/src/build/tex/single.ts +++ b/packages/myst-cli/src/build/tex/single.ts @@ -153,7 +153,7 @@ export async function localArticleToTexRaw( imageAltOutputFolder: 'files/', imageExtensions: TEX_IMAGE_EXTENSIONS, simplifyFigures: true, - mermaidAsImage: true, + mermaidAsImage: true, }); return mdastToTex(session, mdast, references, frontmatter, null, false); }), @@ -253,7 +253,7 @@ export async function localArticleToTexTemplated( imageAltOutputFolder: 'files/', imageExtensions: TEX_IMAGE_EXTENSIONS, simplifyFigures: true, - mermaidAsImage: true, + mermaidAsImage: true, }); partDefinitions.forEach((def) => { diff --git a/packages/myst-cli/src/process/mdast.ts b/packages/myst-cli/src/process/mdast.ts index 2e89092ee..bbc0ab72f 100644 --- a/packages/myst-cli/src/process/mdast.ts +++ b/packages/myst-cli/src/process/mdast.ts @@ -376,7 +376,7 @@ export async function finalizeMdast( }); if (!useExistingImages) { if (mermaidAsImage) { - await mermaidToImageTransform(session, mdast, imageWriteFolder, vfile); + await mermaidToImageTransform(session, mdast, imageWriteFolder, vfile); } await transformImagesToDisk(session, mdast, file, imageWriteFolder, { altOutputFolder: imageAltOutputFolder,