一个简单的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.2.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.2.tar.gz.
File metadata
- Download URL: md_caba-0.1.2.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 |
d9cd51f46b2249f73b5f069d3932a6cb62cd0b89a578775713ffc0b351ed1922
|
|
| MD5 |
4b412901b86295bf89e6e408c2d9654c
|
|
| BLAKE2b-256 |
f8f338c1170d8b7cb7e7ef9c3189f8ed9b5959fae027cff907ac8d9fb854c99b
|
File details
Details for the file md_caba-0.1.2-py3-none-any.whl.
File metadata
- Download URL: md_caba-0.1.2-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 |
0084f68c15425c2c642c3b5f37c41a17e784d8a25e8a0fc39dc42d3f6c049ff5
|
|
| MD5 |
00009b8caec407638e7b39d0a82c1964
|
|
| BLAKE2b-256 |
dcf302e1c8932615ead736d101a5d4f931f389d3cc3af7a892ecb05fa24a38a9
|