catmdx 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,8 +5,11 @@ Read markdown efficiently.
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- # read metadata, TOC and the '#Usage' section from target markdown
8
+ # print metadata, TOC and the '#Usage' section from target markdown
9
9
  npx catmdx README.md --metadata --toc --section 'Usage'
10
+
11
+ # or - print from online files
12
+ curl https://raw.githubusercontent.com/gzzhanghao/catmdx/refs/heads/main/README.md | npx catmdx --toc --stdin
10
13
  ```
11
14
 
12
15
  ## Options
@@ -20,7 +23,9 @@ Arguments:
20
23
  Options:
21
24
  -c, --content <content> Markdown content provided as a string
22
25
  -i, --stdin Read markdown content from stdin
23
- -m, --metadata Print metadata from markdown content
24
- -t, --toc Print table of contents from markdown content
25
- -s, --section <section> Print specific section from markdown content (e.g. "Introduction" or "#2")
26
+ -m, --metadata Print metadata
27
+ -t, --toc Print table of contents
28
+ --toc-metadata Print section metadata in table of contents
29
+ -s, --section <section> Print specific section (e.g. "Introduction" or "#2")
30
+ -r, --recursive Print subsections recursively
26
31
  ```