How to use the json2md function in json2md

To help you get started, we’ve selected a few json2md examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cypress-io / schema-tools / src / document / docs.ts View on Github external
}

  const headings = schemaNames(schemas)
  const toc = [
    {
      ul: headings.map(tocHeading),
    },
  ]

  let list = (title as any[]).concat(toc).concat(fragments)

  if (formats) {
    list = list.concat(documentCustomFormats(formats)).concat(titleLink)
  }

  return json2md(list)
}

json2md

A JSON to Markdown converter.

MIT
Latest version published 3 months ago

Package Health Score

81 / 100
Full package analysis

Popular json2md functions