@@ -551,7 +551,7 @@ def processMarkdown( filename, plumedexe, plumed_names, actions, jsondir="./" )
551551 ninputs , nfail = processMarkdownString ( inp , filename , plumedexe , plumed_names , actions , dirname , ofile , jsondir )
552552 return ninputs , nfail
553553
554- def processMarkdownString ( inp , filename , plumedexe , plumed_names , actions , dirname , ofile , jsondir = "./" ) :
554+ def processMarkdownString ( inp , filename , plumedexe , plumed_names , actions , dirname , ofile , jsondir = "./" , ghmarkdown = True ) :
555555 """
556556 Process a string of markdown that contains LUMED input files using PlumedtoHTML
557557
@@ -639,7 +639,8 @@ def processMarkdownString( inp, filename, plumedexe, plumed_names, actions, dirn
639639 usejson = (not success [- 1 ]),
640640 actions = actions )
641641 # Print the html for the solution
642- ofile .write ( "{% raw %}\n " + html + "\n {% endraw %} \n " )
642+ if ghmarkdown : ofile .write ( "{% raw %}\n " + html + "\n {% endraw %} \n " )
643+ else : ofile .write ( html )
643644 # This finds us the solution file
644645 elif inplumed and "#SOLUTIONFILE=" in line :
645646 solutionfile = line .strip ().replace ("#SOLUTIONFILE=" ,"" )
0 commit comments