Skip to content

openlegaldata/legal-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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