Skip to main content

一个简单的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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md_caba-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for md_caba-0.1.1.tar.gz
Algorithm Hash digest
SHA256 06e75d3da25e333ec6bf1bb24a6dfcc2077e05c7173daa54c141d885a4fc21ab
MD5 3fae3ab1d739f991e544c259c4882c05
BLAKE2b-256 5be5467c93f5d2d78d6619558c701fc3e97779f35729404ffc4fefd99e4a38f9

See more details on using hashes here.

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

Hashes for md_caba-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70f52cb3ba06e0620e91de1393aba167e0cd063e2288443a1f3965e7f64127be
MD5 355668acf7e754dfce6722dcd1d9aba6
BLAKE2b-256 8cd4e22d3e036ff43a461c44f080312638377cf09c903522c4e6e0e15f19f91e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page