mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-03 19:44:35 +12:00
30 lines
841 B
Python
30 lines
841 B
Python
#!/usr/bin/env python
|
|
# --!-- coding: utf8 --!--
|
|
from PyQt5.QtWidgets import qApp
|
|
|
|
from manuskript.exporter.basic import basicExporter, basicFormat
|
|
|
|
|
|
class mmdExporter(basicExporter):
|
|
|
|
name = "MultiMarkdown"
|
|
description = qApp.tr("""<p>A superset of markdown.</p>
|
|
<p>Website: <a href="http://fletcherpenney.net/multimarkdown/">http://fletcherpenney.net/multimarkdown/</a></p>
|
|
""")
|
|
exportTo = [
|
|
basicFormat("HTML", "A little known format modestly used. You know, web sites for example."),
|
|
basicFormat("latex", ""),
|
|
basicFormat("Flat XML", ""),
|
|
basicFormat("ePub", "Books that don't kill trees."),
|
|
]
|
|
cmd = "mmd"
|
|
|
|
@classmethod
|
|
def version(cls):
|
|
if cls.isValid():
|
|
r = cls.run(["-v"])
|
|
return r.split("\n")[1]
|
|
else:
|
|
return ""
|
|
|