From ba0dc40807a00bb758a6fd63585c726b05ad773d Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Mon, 12 Aug 2024 09:46:57 +0100 Subject: [PATCH] chore: run linter --- .changeset/silver-carrots-allow.md | 6 +++--- packages/myst-cli/src/build/tex/single.ts | 4 ++-- packages/myst-cli/src/process/mdast.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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,