Skip to content

Commit

Permalink
Fix the HTML em dash entity
Browse files Browse the repository at this point in the history
  • Loading branch information
willbarton committed May 17, 2019
1 parent f30f4a8 commit 023cb39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def extendMarkdown(self, md):


class EmDashPattern(Pattern):
""" Replace '---' with an &emdash; """
""" Replace '---' with an — """
def handleMatch(self, m):
return '{}emdash;'.format(util.AMP_SUBSTITUTE)
return '{}mdash;'.format(util.AMP_SUBSTITUTE)


class PseudoFormPattern(Pattern):
Expand Down

0 comments on commit 023cb39

Please sign in to comment.