Skip to content

Commit

Permalink
Merge branch 'gadamiak-master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Tessaro committed Aug 26, 2019
2 parents 9aed9bf + 96f0eca commit 5481eab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plantuml_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ class PlantUMLPreprocessor(markdown.preprocessors.Preprocessor):
\s*(height=(?P<quot5>"|')(?P<height>[\w\s"']+%?)(?P=quot5))?
\s*\n
(?P<code>.*?)(?<=\n)
::end-uml::[ ]*$
\s*::end-uml::[ ]*$
''', re.MULTILINE | re.DOTALL | re.VERBOSE)

FENCED_BLOCK_RE = re.compile(r'''
(?P<fence>^(?:~{3,}|`{3,}))[ ]* # Opening ``` or ~~~
(?P<fence>(?:~{3,}|`{3,}))[ ]* # Opening ``` or ~~~
(\{?\.?(plant)?uml)[ ]* # Optional {, and lang
# args
\s*(format=(?P<quot>"|')(?P<format>\w+)(?P=quot))?
Expand All @@ -101,7 +101,7 @@ class PlantUMLPreprocessor(markdown.preprocessors.Preprocessor):
[ ]*
}?[ ]*\n # Optional closing }
(?P<code>.*?)(?<=\n)
(?P=fence)[ ]*$
\s*(?P=fence)[ ]*$
''', re.MULTILINE | re.DOTALL | re.VERBOSE)

def __init__(self, md):
Expand Down

0 comments on commit 5481eab

Please sign in to comment.