flyskypie/markdown-regulation-parser

0.1.0 2020-02-13 05:44 UTC

This package is auto-updated.

Last update: 2025-03-19 19:03:49 UTC


README

Parse markdown format of regulation to JSON, made managed regulation more easy.

Markdown-like Regulation

This parser can only parse certain syntax of markdown.

Level 1 Heading

To define name of regulation, reused this syntax was useless, second one would be ignore.

# Name

or

Name
===

Level 3 Heading

To define chapters, if necessary.

### Chapter

Level 6 Heading

To record legislative of regulation.

###### Promulgated on May 30, 1997.
###### Amendment to Article 2, Article 10 and Article 11, and deletion of Article 20, promulgated on May 17, 2000.

Ordered or Unordered Lists

To descript article, paragraph, subsection and item, those different kind of list are not different in interpret stage, indent be more important to sperated which kind of stucture in regulation, just liked python. To make a indent, 1 tab character are equal to 4 spaces .

1. This is article 1.
	- This is a paragraph.
		1. This is a subsection.