##// END OF EJS Templates
Switch if/else order
Jonathan Frederic -
Show More
@@ -77,10 +77,10 b' def markdown2html(source):'
77 77 warnings.warn( "Node.js 0.9.12 or later wasn't found.\n" +
78 78 "Nbconvert will try to use Pandoc instead.")
79 79 _node = False
80 if not _node:
81 return markdown2html_pandoc(source)
82 else:
80 if _node:
83 81 return markdown2html_marked(source)
82 else:
83 return markdown2html_pandoc(source)
84 84
85 85 def markdown2html_pandoc(source):
86 86 """Convert a markdown string to HTML via pandoc"""
General Comments 0
You need to be logged in to leave comments. Login now