Skip to content

Script to add paragraph numbering to Markdown documents

Notifications You must be signed in to change notification settings

augustjanse/paragraf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

paragraf

Script to add paragraph numbering to Markdown documents according to headings.

./paragraf.py doc.md

Should ideally follow the CommonMark specification for headings, but doesn't. Should still work as intended for most documents. The following are two known deviations from the standard:

  • Setext heading underlines must be at least 2 characters to be recognized as a headings.
  • Headings are assumed by the script to be only one line.

Not thoroughly tested, but generated the same numbering as had been done manually when run on the statutes.

About

Script to add paragraph numbering to Markdown documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages