Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json2md

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2md - npm Package Compare versions

Comparing version 1.11.0 to 1.12.0

19

lib/converters.js

@@ -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";

6

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc