A simple markdown parsing package.
Project description
Markdown Worker
This is a simple markdown parser written in Python. It can read, write and parse markdown files. It can read a particular header, write a particular header, and parse a particular header. It can also parse the entire file.
Installation
git clone https://github.com/mantreshkhurana/markdown-worker-python.git
cd markdown-worker-python
or
pip install markdown-worker
or
pip3 install markdown-worker
Usage
from markdown_worker import MarkdownParser
if __name__ == "__main__":
file_name = input("Enter the path of the Markdown file: ")
parser = MarkdownParser(file_name)
heading_to_search = input("Enter the heading to search: ")
result = parser.search_heading(heading_to_search)
print("\nContent that was under this heading: \n")
print(result)
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markdown_worker-0.0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for markdown_worker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8351fc3288d6fbed1a541619fdf23f9404221108483220e3773444f8b7f5621 |
|
MD5 | 0b7cc25fcf3e3bfc16102e4a8cc483f9 |
|
BLAKE2b-256 | e83b6d6592496004f16c192e9552b539c19de7bbe81def90edd48f8308bdbfce |