Markdown-based legal markup
Go to file
2019-09-15 00:32:48 +10:00
legalmd Don't generate hyperlinks for un-referenceable headings/items (e.g. inside quotes) 2019-09-15 00:32:48 +10:00
.gitignore Add documentation and example output 2019-09-09 22:46:32 +10:00
COPYING Initial commit 2019-09-09 13:25:21 +10:00
example.md Add 4-th level headings 2019-09-15 00:32:16 +10:00
example.pdf Implement cross-references 2019-09-14 23:02:14 +10:00
example.rtf Add 4-th level headings 2019-09-15 00:32:16 +10:00
README.md Add documentation and example output 2019-09-09 22:46:32 +10:00
requirements.txt Initial commit 2019-09-09 13:25:21 +10:00

legalmd

An extension of Markdown to notate Australian-style legal markup, using the Python mistletoe Markdown parser.

legalmd can process Markdown files into LaTeX source code, and RTF. The output style is based on, but separate from, the latex-legal style.

Examples

See example.md for example markup.

To generate LaTeX output, run:

python -m legalmd example.md > example.tex

The LaTeX output file can then be compiled as usual into a PDF document. Note that the generated code utilises fontspec for font support, so LuaLaTeX or XeLaTeX will be required.

To generate RTF output, run:

python -m legalmd --format rtf example.md > example.rtf

The RTF output file can then be directly viewed in a compatible RTF editor.