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
# use these commands to install the package source code to your local machine
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
I provided a example.md
file in the repository. You can use that to test the program, it contains all the documentation of the program.
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.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for markdown_worker-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821b9d3472b10a80a2077e6f1467379ad01ee6887043246b385e07db4d97592f |
|
MD5 | 73a5cee30cebf768b1441a0eec21c781 |
|
BLAKE2b-256 | bf21db23e65c80819220d88250a484dc206daf91d184751f59a5302d18271cc3 |