Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nestarz/jsonifymd
- Owner: nestarz
- Created: 2019-10-14T10:23:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T14:00:53.000Z (over 3 years ago)
- Last Synced: 2024-11-16T16:47:32.837Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://jsonifymd.netlify.com
- Size: 732 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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