Skip to content

Commit

Permalink
Configure mistune to convert markdown tables inside list items
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Jun 11, 2024
1 parent 092e88e commit e92ef8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/transom/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@ def heading(self, text, level, **attrs):
class MarkdownLocal(_threading.local):
def __init__(self):
self.value = _mistune.create_markdown(renderer=HtmlRenderer(escape=False), plugins=["table"])
self.value.block.list_rules += ['table', 'nptable']

_markdown_local = MarkdownLocal()

Expand Down

0 comments on commit e92ef8a

Please sign in to comment.