Comparing version 1.7.1 to 1.8.0
@@ -120,3 +120,15 @@ "use strict"; | ||
var header = " | " + input.headers.join(" | ") + " | ", | ||
spaces = " | " + input.headers.map(function () { | ||
spaces = " | " + input.headers.map(function (_, index) { | ||
if (input.aligns && input.aligns[index]) { | ||
switch (input.aligns[index]) { | ||
case "center": | ||
return ":---:"; | ||
case "right": | ||
return "---:"; | ||
case "left": | ||
return ":---"; | ||
default: | ||
return "---"; | ||
} | ||
} | ||
return "---"; | ||
@@ -123,0 +135,0 @@ }).join(" | ") + " | ", |
@@ -22,3 +22,3 @@ "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` and `source` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png" } }` | | ||
* | `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 representing the items. | `{ ul: ["item 1", "item 2"] }` | | ||
@@ -25,0 +25,0 @@ * | `ol` | Ordered list | An array of strings representing the items. | `{ ol: ["item 1", "item 2"] }` | |
{ | ||
"name": "json2md", | ||
"version": "1.7.1", | ||
"version": "1.8.0", | ||
"description": "A JSON to Markdown converter.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -195,3 +195,3 @@ <!-- 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` and `source` fields. | `{ img: { title: "My image title", source: "http://example.com/image.png" } }` | | ||
| `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 representing the items. | `{ ul: ["item 1", "item 2"] }` | | ||
@@ -291,2 +291,4 @@ | `ol` | Ordered list | An array of strings representing the items. | `{ ol: ["item 1", "item 2"] }` | | ||
- `@best/github-integration` | ||
- `@microfleet/schema2md` | ||
- `@cypress/schema-tools` | ||
- `lambda-docs-2md` | ||
@@ -296,15 +298,13 @@ - `jumia-travel-changelog` | ||
- `uxcore-tools` | ||
- `@cypress/schema-tools` | ||
- `@best/store` | ||
- `utterance-to-markdown` | ||
- `gitdox` | ||
- `p2doc` | ||
- `pantheon_site_management` | ||
- `react-docgen-markdown` | ||
- `utterance-to-markdown` | ||
- `gitdox` | ||
- `doc-cli` | ||
- `terraform2md` | ||
- `doc-cli` | ||
- `component-docs-2md` | ||
- `reposier` | ||
- `bookmark2md` | ||
- `machine-ip` | ||
- `rap2doc` | ||
@@ -325,7 +325,8 @@ - `make-postgres-markdown` | ||
- `@bonitasoft/dependency-list-to-markdown` | ||
- `node-red-contrib-json2md` | ||
- `dokuinjs` | ||
- `lggn` | ||
- `@s-ui/changelog` | ||
- `gatsby-source-google-docs-sheets` | ||
- `machine-ip` | ||
- `parse-google-docs-json` | ||
- `node-red-contrib-json2md` | ||
- `gatsby-source-google-docs` | ||
@@ -332,0 +333,0 @@ - `@feizheng/react-markdown-props`I am using this library to generate documentation for my projects, being integrated with [blah](https://github.com/IonicaBizau/node-blah). |
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
31868
315
361