Skip to content

Commit 9657ea5

Browse files
Gareth Aneurin TribelloGareth Aneurin Tribello
authored andcommitted
Bug fix release to ensure we can create mermaid graphs even when not on github
1 parent 450660c commit 9657ea5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "PlumedToHTML"
8-
version = "0.111"
8+
version = "0.112"
99
description = "A package for creating prettified HTML for PLUMED files"
1010
authors = [{ name = "Gareth Tribello", email = "[email protected]" }]
1111
maintainers = [{ name = "Daniele Rapetti", email = "[email protected]" }]

src/PlumedToHTML/PlumedToHTML.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,8 @@ def processMarkdownString( inp, filename, plumedexe, plumed_names, actions, ofil
699699
mermaidinpt = get_mermaid( plumedexe[-1], plumed_inp, True )
700700
else :
701701
raise RuntimeError(usemermaid + "is invalid instruction for use mermaid")
702-
ofile.write("```mermaid\n" + mermaidinpt + "\n```\n")
702+
if ghmarkdown : ofile.write("```mermaid\n" + mermaidinpt + "\n```\n")
703+
else : print("<pre class=\"mermaid\">\n" + mermaidinpt + "\n</pre>\n")
703704
usemermaid = ""
704705

705706
# Check if this is the input for a command line tool and render accordingly

0 commit comments

Comments
 (0)