697 ).format(mathjax, mermaid, style) |
697 ).format(mathjax, mermaid, style) |
698 |
698 |
699 foot = """\n</body>\n</html>\n""" |
699 foot = """\n</body>\n</html>\n""" |
700 |
700 |
701 return head + body + mermaid_initialize + foot |
701 return head + body + mermaid_initialize + foot |
|
702 |
|
703 |
|
704 def createExporter(editor, parent=None): |
|
705 """ |
|
706 Function to instantiate an exporter object. |
|
707 |
|
708 @param editor reference to the editor object |
|
709 @type QScintilla.Editor.Editor |
|
710 @param parent parent object of the exporter (defaults to None) |
|
711 @type QObject (optional) |
|
712 @return exporter object |
|
713 @rtype ExporterHTML |
|
714 """ |
|
715 return ExporterHTML(editor, parent=parent) |