Comparing version 1.9.2 to 1.10.0
@@ -197,2 +197,6 @@ "use strict"; | ||
return "[" + input.title + "](" + input.source + ")"; | ||
}; | ||
converters.hr = function (input, json2md) { | ||
return '---'; | ||
}; |
@@ -22,8 +22,9 @@ "use strict"; | ||
* | `blockquote` | Blockquote | The blockquote as string or array (multiple blockquotes) | `{ blockquote: "Hello World"}` or multiple blockquotes: `{ blockquote: ["Hello", "World"] }` | | ||
* | `img` | Image | An object or an array of objects containing the `title`, `source` and `alt` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png", alt: "My image alt" } }` | | ||
* | `ul` | Unordered list | An array of strings or lists representing the items. | `{ ul: ["item 1", "item 2"] }` | | ||
* | `ol` | Ordered list | An array of strings or lists representing the items. | `{ ol: ["item 1", "item 2"] }` | | ||
* | `img` | Image | An object or an array of objects containing the `title`, `source` and `alt` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png", alt: "My image alt" } }` | | ||
* | `ul` | Unordered list | An array of strings or lists representing the items. | `{ ul: ["item 1", "item 2"] }` | | ||
* | `ol` | Ordered list | An array of strings or lists representing the items. | `{ ol: ["item 1", "item 2"] }` | | ||
* | `hr` | Separator | None | `{ hr: "" }` | | ||
* | `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>" } }` | | ||
* | `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"]] } }` | | ||
* | `link` | Link | An object containing the `title` and the `source` fields. | `{ title: 'hello', source: 'https://ionicabizau.net' } | ||
* | `link` | Link | An object containing the `title` and the `source` fields. | `{ title: 'hello', source: 'https://ionicabizau.net' }` | | ||
* | ||
@@ -30,0 +31,0 @@ * |
{ | ||
"name": "json2md", | ||
"version": "1.9.2", | ||
"version": "1.10.0", | ||
"description": "A JSON to Markdown converter.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -195,8 +195,9 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> | ||
| `blockquote` | Blockquote | The blockquote as string or array (multiple blockquotes) | `{ blockquote: "Hello World"}` or multiple blockquotes: `{ blockquote: ["Hello", "World"] }` | | ||
| `img` | Image | An object or an array of objects containing the `title`, `source` and `alt` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png", alt: "My image alt" } }` | | ||
| `ul` | Unordered list | An array of strings or lists representing the items. | `{ ul: ["item 1", "item 2"] }` | | ||
| `ol` | Ordered list | An array of strings or lists representing the items. | `{ ol: ["item 1", "item 2"] }` | | ||
| `img` | Image | An object or an array of objects containing the `title`, `source` and `alt` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png", alt: "My image alt" } }` | | ||
| `ul` | Unordered list | An array of strings or lists representing the items. | `{ ul: ["item 1", "item 2"] }` | | ||
| `ol` | Ordered list | An array of strings or lists representing the items. | `{ ol: ["item 1", "item 2"] }` | | ||
| `hr` | Separator | None | `{ hr: "" }` | | ||
| `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>" } }` | | ||
| `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"]] } }` | | ||
| `link` | Link | An object containing the `title` and the `source` fields. | `{ title: 'hello', source: 'https://ionicabizau.net' } | ||
| `link` | Link | An object containing the `title` and the `source` fields. | `{ title: 'hello', source: 'https://ionicabizau.net' }` | | ||
@@ -291,9 +292,9 @@ You can extend the `json2md.converters` object to support your custom types. | ||
- `@microfleet/schema2md` | ||
- `@cypress/schema-tools` | ||
- `@best/github-integration` | ||
- `@cypress/schema-tools` | ||
- `lambda-docs-2md` | ||
- `jumia-travel-changelog` | ||
- `@cobalt-engine/change-logger` | ||
- `uxcore-tools` | ||
- `@best/store` | ||
- `uxcore-tools` | ||
- `p2doc` | ||
@@ -329,13 +330,13 @@ - `pantheon_site_management` | ||
- `dokuinjs` | ||
- `@feizheng/react-markdown-props` | ||
- `@e2y/bdd-dictionary-generator` | ||
- `@s-ui/changelog` | ||
- `lab-changelog` | ||
- `@jswork/react-markdown-props` | ||
- `@gracexwho/model-card-generator` | ||
- `@bwagener/gridsome-source-google-docs` | ||
- `asm-auto-deploy` | ||
- `type-graphql-to-md` | ||
- `@gracexwho/model-card-generator` | ||
- `gatsby-source-google-docs` | ||
- `dargstack_rgen`I am using this library to generate documentation for my projects, being integrated with [blah](https://github.com/IonicaBizau/node-blah). | ||
- `@e2y/bdd-dictionary-generator` | ||
- `@s-ui/changelog` | ||
- `dargstack_rgen` | ||
- `@feizheng/react-markdown-props` | ||
- `@jswork/react-markdown-props`I am using this library to generate documentation for my projects, being integrated with [blah](https://github.com/IonicaBizau/node-blah). | ||
@@ -342,0 +343,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34981
355
370