jspdf-md-renderer 1.4.0 → 1.4.1

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.
Files changed (2) hide show
  1. package/README.md +6 -8
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -146,6 +146,12 @@ The following Markdown elements are currently supported by `jspdf-md-renderer`:
146
146
  - **Lists**:
147
147
  - Unordered lists: `-`, `*`, `+`
148
148
  - Ordered lists: `1.`, `2.`, `3.`, etc.
149
+ - **Code Blocks** (fenced and indented):
150
+ ````markdown
151
+ ```js
152
+ console.log('Hello, world!');
153
+ ```
154
+ ````
149
155
  ### Proposed for Future Implementation:
150
156
  - **Emphasis**:
151
157
  - **Bold**: `**bold text**` or `__bold text__`
@@ -163,14 +169,6 @@ The following Markdown elements are currently supported by `jspdf-md-renderer`:
163
169
  ```markdown
164
170
  [GitHub](https://github.com)
165
171
  ```
166
- - **Code Blocks** (fenced and indented):
167
- ````markdown
168
- ```js
169
- console.log('Hello, world!');
170
- ```
171
- ````
172
-
173
-
174
172
  - **Inline Code**:
175
173
  ```markdown
176
174
  This is an `inline code` example.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jspdf-md-renderer",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A jsPDF utility to render Markdown directly into formatted PDFs with custom designs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "homepage": "https://github.com/JeelGajera/jspdf-md-renderer#readme",
46
46
  "dependencies": {
47
- "jspdf": "^2.5.2",
47
+ "jspdf": "^3.0.1",
48
48
  "marked": "^15.0.3"
49
49
  },
50
50
  "devDependencies": {
@@ -53,9 +53,9 @@
53
53
  "@typescript-eslint/eslint-plugin": "^8.18.0",
54
54
  "@typescript-eslint/parser": "^8.18.0",
55
55
  "eslint": "^9.16.0",
56
- "eslint-config-prettier": "^9.1.0",
56
+ "eslint-config-prettier": "^10.1.1",
57
57
  "eslint-plugin-prettier": "^5.2.1",
58
- "globals": "^15.13.0",
58
+ "globals": "^16.0.0",
59
59
  "prettier": "^3.4.2",
60
60
  "rimraf": "^6.0.1",
61
61
  "typescript": "^5.7.2",