mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-21 05:12:27 +12:00
29 lines
922 B
Python
29 lines
922 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.translate("Export", """<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.", "text-html"),
|
|
basicFormat("latex", "", "text-x-tex"),
|
|
basicFormat("Flat XML", "", "text-xml"),
|
|
basicFormat("ePub", "Books that don't kill trees.", icon="application-epub+zip"),
|
|
]
|
|
cmd = "multimarkdown"
|
|
|
|
def version(self):
|
|
if self.isValid():
|
|
r = self.run(["-v"])
|
|
return r.split("\n")[1]
|
|
else:
|
|
return ""
|
|
|