Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nestarz/jsonifymd

Convert Markdown to JSON
https://github.com/nestarz/jsonifymd

Last synced: about 1 month ago
JSON representation

Convert Markdown to JSON

Awesome Lists containing this project

README

        

# jsonifymd

Convert Markdown to JSON (ESM library)

## Install

```
yarn add jsonifymd
```

# Quickstart

```js
import("https://unpkg.com/jsonifymd@latest/dist/index.es.min.js")
.then(({ default: jsonifymd }) => {
const config = {
explicit: false // headings are keys of objects instead of values
}
const json = jsonifymd.text(markdown_text, config) // From RAW text
const json = jsonifymd.url(markdown_url, config) // From URL
console.log(json);
);
});
```

## Example

https://jsonifymd.netlify.com