You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`h1`| Heading 1 | The heading text as string. |`{ h1: "heading 1" }`|
101
-
|`h2`| Heading 2 | The heading text as string. |`{ h2: "heading 2" }`|
102
-
|`h3`| Heading 3 | The heading text as string. |`{ h3: "heading 3" }`|
103
-
|`h4`| Heading 4 | The heading text as string. |`{ h4: "heading 4" }`|
104
-
|`h5`| Heading 5 | The heading text as string. |`{ h5: "heading 5" }`|
105
-
|`h6`| Heading 6 | The heading text as string. |`{ h6: "heading 6" }`|
106
-
|`p`| Paragraphs | The paragraph text as string or array (multiple paragraphs). |`{ p: "Hello World"}` or multiple paragraphs: `{ p: ["Hello", "World"] }`|
107
-
|`blockquote`| Blockquote | The blockquote as string or array (multiple blockquotes) |`{ blockquote: "Hello World"}` or multiple blockquotes: `{ blockquote: ["Hello", "World"] }`|
108
-
|`img`| Image | An object or an array of objects containing the `title` and `source` fields. |`{ img: { title: "My image title", source: "http://example.com/image.png" } }`|
109
-
|`ul`| Unordered list | An array of strings representing the items. |`{ ul: ["item 1", "item 2"] }`|
110
-
|`ol`| Ordered list | An array of strings representing the items. |`{ ol: ["item 1", "item 2"] }`|
111
-
|`code`| Code block element | An object containing the `language` (`String`) and `content` (`Array` or `String`) fields. | `{ code: { "language": "html", "content": "<scriptsrc='dummy.js'></script>" } } |
|`h1`| Heading 1 | The heading text as string. |`{ h1: "heading 1" }`|
101
+
|`h2`| Heading 2 | The heading text as string. |`{ h2: "heading 2" }`|
102
+
|`h3`| Heading 3 | The heading text as string. |`{ h3: "heading 3" }`|
103
+
|`h4`| Heading 4 | The heading text as string. |`{ h4: "heading 4" }`|
104
+
|`h5`| Heading 5 | The heading text as string. |`{ h5: "heading 5" }`|
105
+
|`h6`| Heading 6 | The heading text as string. |`{ h6: "heading 6" }`|
106
+
|`p`| Paragraphs | The paragraph text as string or array (multiple paragraphs). |`{ p: "Hello World"}` or multiple paragraphs: `{ p: ["Hello", "World"] }`|
107
+
|`blockquote`| Blockquote | The blockquote as string or array (multiple blockquotes) |`{ blockquote: "Hello World"}` or multiple blockquotes: `{ blockquote: ["Hello", "World"] }`|
108
+
|`img`| Image | An object or an array of objects containing the `title` and `source` fields. |`{ img: { title: "My image title", source: "http://example.com/image.png" } }`|
109
+
|`ul`| Unordered list | An array of strings representing the items. |`{ ul: ["item 1", "item 2"] }`|
110
+
|`ol`| Ordered list | An array of strings representing the items. |`{ ol: ["item 1", "item 2"] }`|
111
+
|`code`| Code block element | An object containing the `language` (`String`) and `content` (`Array` or `String`) fields. |`{ code: { "language": "html", "content": "<script src='dummy.js'></script>" } }`|
112
+
|`table`| Table | An object containing the `headers` (`Array` of `String`s) and `rows` (`Array` of `Array`s or `Object`s). |`{ table: { headers: ["a", "b"], rows: [{ a: "col1", b: "col2" }] } }` or `{ table: { headers: ["a", "b"], rows: [["col1", "col2"]] } }`|
112
113
113
114
You can extend the `json2md.converters` object to support your custom types.
* | `h1` | Heading 1 | The heading text as string. | `{ h1: "heading 1" }` |
13
-
* | `h2` | Heading 2 | The heading text as string. | `{ h2: "heading 2" }` |
14
-
* | `h3` | Heading 3 | The heading text as string. | `{ h3: "heading 3" }` |
15
-
* | `h4` | Heading 4 | The heading text as string. | `{ h4: "heading 4" }` |
16
-
* | `h5` | Heading 5 | The heading text as string. | `{ h5: "heading 5" }` |
17
-
* | `h6` | Heading 6 | The heading text as string. | `{ h6: "heading 6" }` |
18
-
* | `p` | Paragraphs | The paragraph text as string or array (multiple paragraphs). | `{ p: "Hello World"}` or multiple paragraphs: `{ p: ["Hello", "World"] }` |
19
-
* | `blockquote` | Blockquote | The blockquote as string or array (multiple blockquotes) | `{ blockquote: "Hello World"}` or multiple blockquotes: `{ blockquote: ["Hello", "World"] }` |
20
-
* | `img` | Image | An object or an array of objects containing the `title` and `source` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png" }}` |
21
-
* | `ul` | Unordered list | An array of strings representing the items. | `{ ul: ["item 1", "item 2"] }` |
22
-
* | `ol` | Ordered list | An array of strings representing the items. | `{ ol: ["item 1", "item 2"] }` |
23
-
* | `code` | Code block element | An object containing the `language` (`String`) and `content` (`Array` or `String`) fields. | `{ code: { "language": "html", "content": "<script src='dummy.js'></script>" }} |
* | `h1` | Heading 1 | The heading text as string. | `{ h1: "heading 1" }` |
13
+
* | `h2` | Heading 2 | The heading text as string. | `{ h2: "heading 2" }` |
14
+
* | `h3` | Heading 3 | The heading text as string. | `{ h3: "heading 3" }` |
15
+
* | `h4` | Heading 4 | The heading text as string. | `{ h4: "heading 4" }` |
16
+
* | `h5` | Heading 5 | The heading text as string. | `{ h5: "heading 5" }` |
17
+
* | `h6` | Heading 6 | The heading text as string. | `{ h6: "heading 6" }` |
18
+
* | `p` | Paragraphs | The paragraph text as string or array (multiple paragraphs). | `{ p: "Hello World"}` or multiple paragraphs: `{ p: ["Hello", "World"] }` |
19
+
* | `blockquote` | Blockquote | The blockquote as string or array (multiple blockquotes) | `{ blockquote: "Hello World"}` or multiple blockquotes: `{ blockquote: ["Hello", "World"] }` |
20
+
* | `img` | Image | An object or an array of objects containing the `title` and `source` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png" }}` |
21
+
* | `ul` | Unordered list | An array of strings representing the items. | `{ ul: ["item 1", "item 2"] }` |
22
+
* | `ol` | Ordered list | An array of strings representing the items. | `{ ol: ["item 1", "item 2"] }` |
23
+
* | `code` | Code block element | An object containing the `language` (`String`) and `content` (`Array` or `String`) fields. | `{ code: { "language": "html", "content": "<script src='dummy.js'></script>" }}` |
24
+
* | `table` | Table | An object containing the `headers` (`Array` of `String`s) and `rows` (`Array` of `Array`s or `Object`s). | `{ table: { headers: ["a", "b"], rows: [{ a: "col1", b: "col2" }] }}` or `{ table: { headers: ["a", "b"], rows: [["col1", "col2"]] }}` |
25
+
*
24
26
*
25
27
* You can extend the `json2md.converters` object to support your custom types.
0 commit comments