Comparing version 1.11.0 to 1.12.0
@@ -76,3 +76,3 @@ "use strict"; | ||
var type = Object.keys(input[i])[0]; | ||
if (type !== "ul" && type !== "ol") { | ||
if (type !== "ul" && type !== "ol" && type !== 'taskLists') { | ||
marker += "\n - "; | ||
@@ -92,3 +92,3 @@ } | ||
var type = Object.keys(input[i])[0]; | ||
if (type !== "ul" && type !== "ol") { | ||
if (type !== "ul" && type !== "ol" && type !== 'taskLists') { | ||
marker = "\n " + (i + 1 - jumpCount) + ". "; | ||
@@ -104,2 +104,17 @@ } else { | ||
converters.taskLists = function (input, json2md) { | ||
var c = ""; | ||
for (var i = 0; i < input.length; ++i) { | ||
var marker = ""; | ||
var type = Object.keys(input[i])[0]; | ||
if (type !== "ul" && type !== "ol" && type !== 'taskLists') { | ||
marker += input[i].isDone ? "\n - [x] " : "\n - [ ] "; | ||
} | ||
c += marker + parseTextFormat(indent(json2md(input[i].title || input[i]), 4, true)); | ||
} | ||
return c; | ||
}; | ||
converters.code = function (input, json2md) { | ||
@@ -106,0 +121,0 @@ var c = "```" + (input.language || "") + "\n"; |
{ | ||
"name": "json2md", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"description": "A JSON to Markdown converter.", | ||
@@ -44,6 +44,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"indento": "^1.1.7" | ||
"indento": "^1.1.13" | ||
}, | ||
"devDependencies": { | ||
"tester": "^1.3.0" | ||
"tester": "^1.4.5" | ||
}, | ||
@@ -50,0 +50,0 @@ "files": [ |
@@ -324,3 +324,2 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> | ||
- `machine-ip` | ||
- `parse-google-docs-json` | ||
- `node-red-contrib-json2md` | ||
@@ -337,13 +336,15 @@ - `dokuinjs` | ||
- `@e2y/bdd-dictionary-generator` | ||
- `github-repo-tools` | ||
- `@hitorisensei/monorepo-readme-generator` | ||
- `uxcore-tools` | ||
- `@hitorisensei/monorepo-readme-generator` | ||
- `type-graphql-to-md` | ||
- `heat-sfdx-tooling` | ||
- `dargstack_rgen` | ||
- `@flive/react-kit` | ||
- `@hitorisensei/markdown-readme-generator` | ||
- `github-repo-tools` | ||
- `collman` | ||
- `parse-google-docs-json` | ||
- `gatsby-source-google-docs` | ||
- `@apica-io/asm-auto-deploy` | ||
- `heat-sfdx-tooling` | ||
- `@jswork/react-markdown-props` | ||
- `@discordoo/taapok` | ||
- `dargstack_rgen`I am using this library to generate documentation for my projects, being integrated with [blah](https://github.com/IonicaBizau/node-blah). | ||
- `@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). | ||
@@ -350,0 +351,0 @@ |
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
37186
404
379
Updatedindento@^1.1.13