Skip to content

Commit

Permalink
Use the command mmdc directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jan 21, 2025
1 parent 8fd8296 commit 65c2a08
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -35676,8 +35676,8 @@ end
% \end{macrocode}
% \begin{markdown}
%
% Typeset fenced code with infostring `mermaid` using the npm package
% [@mermaid-js/mermaid-cli](https://www.npmjs.com/package/@mermaid-js/mermaid-cli).
% Typeset fenced code with infostring `mermaid` using the command `mmdc` from
% the npm package `@mermaid-js/mermaid-cli`.
%
% \end{markdown}
% \begin{macrocode}
Expand All @@ -35687,10 +35687,7 @@ end
\@@_diagrams_render_diagram:nnnn
{ #1 }
{ #1.pdf }
{
npx~-p~@mermaid-js/mermaid-cli~mmdc~
--pdfFit~-i~#1~-o~#1.pdf
}
{ mmdc~--pdfFit~-i~#1~-o~#1.pdf }
{ Mermaid~image }
}
\@@_tl_set_from_cs:NNn
Expand Down

0 comments on commit 65c2a08

Please sign in to comment.