Skip to content

Commit

Permalink
v0.1.1: enabled Extra
Browse files Browse the repository at this point in the history
  • Loading branch information
chigkim committed May 30, 2023
1 parent 24d5fcf commit 31fb616
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AME.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ def onExport(self, e):
dirname = dlg.GetDirectory()
file = os.path.join(dirname, filename)
output_file = codecs.open(file, "w", encoding="utf-8", errors="xmlcharrefreplace")
htmlText = markdown.markdown(self.mdPanel.control.GetValue())
htmlText = markdown.markdown(self.mdPanel.control.GetValue(), extensions=['extra'])
output_file.write(htmlText)

def onClipboard(self, e):
self.convert()
htmlText = markdown.markdown(self.mdPanel.control.GetValue())
htmlText = markdown.markdown(self.mdPanel.control.GetValue(), extensions=['extra'])
if wx.TheClipboard.Open():
wx.TheClipboard.SetData(wx.TextDataObject(htmlText))
wx.TheClipboard.Close()
Expand Down Expand Up @@ -177,7 +177,7 @@ def OnNotebookChanged(self, e):
self.focus(focus)

def convert(self):
htmlText = markdown.markdown(self.mdPanel.control.GetValue())
htmlText = markdown.markdown(self.mdPanel.control.GetValue(), extensions=['extra'])
self.WebPanel.browser.SetPage(htmlText, "")

app = wx.App(False)
Expand Down

0 comments on commit 31fb616

Please sign in to comment.