memd-cli 1.5.0 → 2.0.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.
@@ -4,7 +4,12 @@
4
4
  "Bash(echo:*)",
5
5
  "Bash(FORCE_COLOR=1 echo:*)",
6
6
  "Bash(script:*)",
7
- "Bash(FORCE_COLOR=1 node:*)"
7
+ "Bash(FORCE_COLOR=1 node:*)",
8
+ "Bash(node -e \"import\\('beautiful-mermaid/src/ascii/ansi.ts'\\).then\\(m=>console.log\\(Object.keys\\(m\\)\\)\\).catch\\(e=>console.error\\('ERROR:',e.message\\)\\)\" 2>&1 | head -5)",
9
+ "Bash(node main.js test/test-highlight.md --no-pager --theme catppuccin-mocha 2>&1 | head -3 | xxd | head -10)",
10
+ "Bash(FORCE_COLOR=1 node main.js test/test-highlight.md --no-pager --theme catppuccin-mocha 2>&1 | head -3 | xxd | head -5)",
11
+ "Bash(FORCE_COLOR=1 node main.js test/test-highlight.md --no-pager --theme zinc-dark 2>&1 | head -3 | xxd | head -5)",
12
+ "mcp__grep-github__searchGitHub"
8
13
  ]
9
14
  }
10
15
  }
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # memd
2
2
 
3
- > View mermaid-ed markdown in terminal
3
+ > Render markdown with mermaid diagrams
4
4
 
5
5
  ## Install
6
6
 
@@ -14,7 +14,7 @@ npm install -g memd-cli
14
14
  ```
15
15
  Usage: memd [options] [files...]
16
16
 
17
- Render markdown with mermaid diagrams to terminal output
17
+ Render markdown with mermaid diagrams
18
18
 
19
19
  Arguments:
20
20
  files markdown file(s) to render
@@ -26,8 +26,12 @@ Options:
26
26
  --no-color disable colored output
27
27
  --width <number> terminal width override
28
28
  --ascii use pure ASCII mode for diagrams (default: unicode)
29
- --theme <name> syntax highlight theme (default, monokai, dracula,
30
- github-dark, solarized, nord) (default: "default")
29
+ --html output as standalone HTML (mermaid diagrams rendered as inline SVG)
30
+ --theme <name> color theme (default: "nord")
31
+ zinc-light, zinc-dark, tokyo-night, tokyo-night-storm,
32
+ tokyo-night-light, catppuccin-mocha, catppuccin-latte,
33
+ nord, nord-light, dracula, github-light, github-dark,
34
+ solarized-light, solarized-dark, one-dark
31
35
  -h, --help display help for command
32
36
  ```
33
37
 
@@ -289,6 +293,16 @@ This is regular text between mermaid diagrams.
289
293
 
290
294
  ```
291
295
 
296
+ ### HTML output
297
+
298
+ HTML is written to stdout. Use shell redirection to save to a file.
299
+
300
+ ```
301
+ $ memd doc.md --html > out.html
302
+ $ memd doc.md --html --theme dracula > out.html
303
+ $ memd a.md b.md --html > combined.html
304
+ ```
305
+
292
306
  ### Stdin input
293
307
 
294
308
  ```
@@ -318,7 +332,7 @@ node main.js test/test1.md
318
332
 
319
333
  ```bash
320
334
  # tag
321
- npm install -g git+https://github.com/ktrysmt/memd.git#v1.1.0
335
+ npm install -g git+https://github.com/ktrysmt/memd.git#v2.0.0
322
336
  # branch
323
337
  npm install -g git+https://github.com/ktrysmt/memd.git#master
324
338
  npm install -g git+https://github.com/ktrysmt/memd.git#feature