一个简单的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.0.tar.gz
(2.3 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.0.tar.gz.
File metadata
- Download URL: md_caba-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
356584f504d5aa2d4e39339488ef7e9cde445e99bb759970a33c09b35b723f24
|
|
| MD5 |
0d8d0e294320d654602ec7362f97a9bf
|
|
| BLAKE2b-256 |
25d10110647f6ae74493c902378c03135b1c2c90731748d628fc2235786848a9
|
File details
Details for the file md_caba-0.1.0-py3-none-any.whl.
File metadata
- Download URL: md_caba-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 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 |
e3896b2dab66e28ee022512c617aea2a0b4315dfe6e5af1a5bd5b1295a8cefce
|
|
| MD5 |
b5a5a84d99f3bdcf15a494d4ce55d21b
|
|
| BLAKE2b-256 |
bc1fda0c722b8d38c7e52e250d54f2b8c376440ea18f85a52df50ed1c0ef54cf
|