Skip to content

Commit

Permalink
Fix handling of characters after backtick in tables.
Browse files Browse the repository at this point in the history
Fixes Python-Markdown#440. Thanks @jandecaluwe for the bug report.
  • Loading branch information
mitya57 committed Nov 7, 2015
1 parent 14a0453 commit b966709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown/extensions/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _split(self, row, marker):
groups = match.groups()
delim = groups[1] # the code block delimeter (ie 1 or more backticks)
row_contents = groups[2] # the text contained inside the code block
i += match.start(4) # jump pointer to the beginning of the rest of the text (group #4)
i += match.start(4) - 1 # jump pointer to the beginning of the rest of the text (group #4)
element = delim + row_contents + delim # reinstert backticks
current += element
i += 1
Expand Down

0 comments on commit b966709

Please sign in to comment.