Skip to content

Commit

Permalink
Merge pull request #23 from alflanagan/fix-tables-becoming-sequence-d…
Browse files Browse the repository at this point in the history
…iagrams

Fix tables becoming sequence diagrams
  • Loading branch information
jemerick authored Nov 20, 2019
2 parents c88ef26 + 86df5fe commit 6310f83
Show file tree
Hide file tree
Showing 7 changed files with 653 additions and 25 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
=======

0.2.7 (2019-11-20)
-----------------

* Fix case where '|||' in a table started a sequence diagram.

0.2.6 (2019-06-12)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Jason Emerick"""
__email__ = '[email protected]'
__version__ = '0.2.6'
__version__ = '0.2.7'
2 changes: 1 addition & 1 deletion docdown/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class SequenceDiagramBlockPreprocessor(TemplateRenderMixin, Preprocessor):

RE = re.compile(r'\|{3,}\s*?\n(?P<content>[\s\S\n]*?)!(\[(?P<title>.*)\])?\((?P<url>\S*)\)\n\|{3,}', re.MULTILINE)
RE = re.compile(r'^\s*\|{3,}\s*?\n(?P<content>[\s\S\n]*?)!(\[(?P<title>.*)\])?\((?P<url>\S*)\)\n\|{3,}', re.MULTILINE)

def __init__(self, media_url=None, prefix='', postfix='', template_adapter=DEFAULT_ADAPTER, **kwargs):
self.media_url = media_url
Expand Down
Loading

0 comments on commit 6310f83

Please sign in to comment.