A markdown extension for converting Leiden+ epigraphic text to TEI XML/HTML
$ pip install leidenmark
A Python Markdown extension for converting Leiden+ epigraphic text to TEI XML/HTML. Inspired by the Brill plain text (BPT) format that aims to incorporate Leiden+ into a Markdown-based syntax.
>>> from leidenmark import leiden_plus
>>> content = """
=D>
=D>"""
>>> leiden_plus(content, indent=True)
The output of the above lines is the following XML snippet:
Lorem ipsum dolor
sit amet, con c
etur adipiscing
ut labore et dol
ore magna