Skip to content

estebangarcia21/markdown-list-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown List Reader

A simple tool for reading lists in markdown.

Usage

Begin by running the mdr.py file and input either a markdown string with the --string flag or a file with the --file flag.

python3 mdr.py --file example.py

If successful, it will execute the main function in main.py with all of the parsed sections. Example main.py:

from parse import Section


def main(sections: list[Section]):
    for s in sections:
        print(s.title)


if __name__ == '__main__':
    print('Run mdr.py to parse your markdown list!')
    exit(1)

Output:

Section one
Introduction
Section two
Thats it

About

Read a list in markdown and do something with it!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages