@dkothule/md2pdf 1.0.2 → 1.0.4
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 +21 -0
- package/install-system-deps.sh +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,6 +18,27 @@ It keeps Mermaid diagrams sharp in PDF by rendering vector assets (SVG by defaul
|
|
|
18
18
|
- Configurable defaults (`~/.config/md2pdf/config.env`, project `.md2pdfrc`, or `--config`).
|
|
19
19
|
- Optional Finder Quick Action integration on macOS.
|
|
20
20
|
|
|
21
|
+
## New Machine Bootstrap (No Homebrew or npm)
|
|
22
|
+
|
|
23
|
+
If this is a fresh machine, install package manager/runtime first:
|
|
24
|
+
|
|
25
|
+
macOS:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
29
|
+
eval "$(/opt/homebrew/bin/brew shellenv)" || eval "$(/usr/local/bin/brew shellenv)"
|
|
30
|
+
brew install node
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Debian/Ubuntu:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
sudo apt-get update
|
|
37
|
+
sudo apt-get install -y nodejs npm
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Then continue with the install steps below.
|
|
41
|
+
|
|
21
42
|
## Install
|
|
22
43
|
|
|
23
44
|
### Frictionless install (recommended)
|
package/install-system-deps.sh
CHANGED
|
@@ -56,9 +56,11 @@ confirm_install() {
|
|
|
56
56
|
echo "Detected OS: $OS"
|
|
57
57
|
printf "Continue? [y/N] "
|
|
58
58
|
local response
|
|
59
|
+
local normalized_response
|
|
59
60
|
read -r response
|
|
61
|
+
normalized_response="$(printf '%s' "$response" | tr '[:upper:]' '[:lower:]')"
|
|
60
62
|
|
|
61
|
-
case "$
|
|
63
|
+
case "$normalized_response" in
|
|
62
64
|
y|yes)
|
|
63
65
|
;;
|
|
64
66
|
*)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dkothule/md2pdf",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Markdown to PDF converter with high-resolution Mermaid diagram rendering",
|
|
5
5
|
"author": "Deepak Kothule",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"postinstall": "echo \"Mermaid CLI installed\""
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@mermaid-js/mermaid-cli": "
|
|
55
|
+
"@mermaid-js/mermaid-cli": "11.12.0"
|
|
56
56
|
}
|
|
57
57
|
}
|