jspdf-md-renderer 1.5.0 → 1.5.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.
- package/README.md +14 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,6 +69,14 @@ This section showcases how to create simple and nested lists.
|
|
|
69
69
|
1. Nested Subtopic 2.2.1
|
|
70
70
|
2. Nested Subtopic 2.2.2
|
|
71
71
|
|
|
72
|
+
### Emphasis and Strong Emphasis
|
|
73
|
+
- *Italic* text using asterisks.
|
|
74
|
+
- _Italic_ text using underscores.
|
|
75
|
+
- **Bold** text using double asterisks.
|
|
76
|
+
- __Bold__ text using double underscores.
|
|
77
|
+
- ***Bold and Italic*** text using triple asterisks.
|
|
78
|
+
- ___Bold and Italic___ text using triple underscores.
|
|
79
|
+
|
|
72
80
|
`;
|
|
73
81
|
|
|
74
82
|
const generatePDF = async () => {
|
|
@@ -146,17 +154,19 @@ The following Markdown elements are currently supported by `jspdf-md-renderer`:
|
|
|
146
154
|
- **Lists**:
|
|
147
155
|
- Unordered lists: `-`, `*`, `+`
|
|
148
156
|
- Ordered lists: `1.`, `2.`, `3.`, etc.
|
|
157
|
+
- **Horizontal Rules**: `---`, `***`, `___`
|
|
158
|
+
- **Text Styles**:
|
|
159
|
+
- Bold: `**bold**` or `__bold__`
|
|
160
|
+
- Italic: `*italic*` or `_italic_`
|
|
161
|
+
- Bold Italic: `***bold italic***` or `___bold italic___`
|
|
149
162
|
- **Code Blocks** (fenced and indented):
|
|
150
163
|
````markdown
|
|
151
164
|
```js
|
|
152
165
|
console.log('Hello, world!');
|
|
153
166
|
```
|
|
154
167
|
````
|
|
168
|
+
|
|
155
169
|
### Proposed for Future Implementation:
|
|
156
|
-
- **Emphasis**:
|
|
157
|
-
- **Bold**: `**bold text**` or `__bold text__`
|
|
158
|
-
- _Italic_: `*italic text*` or `_italic text_`
|
|
159
|
-
- **_Bold Italic_**: `***bold italic***`
|
|
160
170
|
- **Blockquotes**:
|
|
161
171
|
```markdown
|
|
162
172
|
> This is a blockquote.
|