Markdown-based legal markup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
RunasSudo 0eeb0cc0aa
Add documentation and example output
4 years ago
legalmd Tables and unnumbered headings 4 years ago
.gitignore Add documentation and example output 4 years ago
COPYING Initial commit 4 years ago
README.md Add documentation and example output 4 years ago
example.md Add documentation and example output 4 years ago
example.pdf Add documentation and example output 4 years ago
example.rtf Add documentation and example output 4 years ago
requirements.txt Initial commit 4 years ago

README.md

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.