一个简单的Markdown文件读取和解析工具
Project description
MD CaBa
一个简单的Markdown文件读取和解析工具。
安装
pip install md_caba
使用方法
from md_caba import MDReader
# 创建MDReader实例
reader = MDReader('path/to/your/file.md')
# 获取所有代码块
code_blocks = reader.get_code_blocks()
# 获取特定语言的代码块
python_blocks = reader.get_code_blocks('python')
# 打印所有内容
reader.print_content()
# 转换为JSON
json_content = reader.to_json()
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
md_caba-0.1.1.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file md_caba-0.1.1.tar.gz.
File metadata
- Download URL: md_caba-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e75d3da25e333ec6bf1bb24a6dfcc2077e05c7173daa54c141d885a4fc21ab
|
|
| MD5 |
3fae3ab1d739f991e544c259c4882c05
|
|
| BLAKE2b-256 |
5be5467c93f5d2d78d6619558c701fc3e97779f35729404ffc4fefd99e4a38f9
|
File details
Details for the file md_caba-0.1.1-py3-none-any.whl.
File metadata
- Download URL: md_caba-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f52cb3ba06e0620e91de1393aba167e0cd063e2288443a1f3965e7f64127be
|
|
| MD5 |
355668acf7e754dfce6722dcd1d9aba6
|
|
| BLAKE2b-256 |
8cd4e22d3e036ff43a461c44f080312638377cf09c903522c4e6e0e15f19f91e
|