openlegaldata / legal-md

Markdown for Legal Documents

Home Page:https://openlegaldata.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legal MD: Markdown for Legal Documents

Build Status Coverage Status

!!! THIS EXTENSION IS STILL WORK-IN-PROGRESS !!!

Extension for Python-Markdown. Supported features:

  • Line numbers: Convert paragraph numbers into HTML tables
  • Special links: Semantic annotation and citation markers

Install

pip install git+https://github.com/openlegaldata/legal-md.git#egg=legal-md

# Install locally (dev purpose)
pip install -e /var/www/apps/oldp/app/

Usage

import markdown

md_str = '# Title\n'
md_str += '1| Paragraph with line number\n'

html = markdown.markdown(md_str, extensions=[
    'legal_md.extensions.line_numbers',
])

License

not licensed yet

About

Markdown for Legal Documents

https://openlegaldata.io


Languages

Language:HTML 54.7%Language:Python 45.3%