Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/val-istar-guo/md-core
Markdown Parser(deprecated)
https://github.com/val-istar-guo/md-core
Last synced: 3 months ago
JSON representation
Markdown Parser(deprecated)
- Host: GitHub
- URL: https://github.com/val-istar-guo/md-core
- Owner: Val-istar-Guo
- License: mit
- Archived: true
- Created: 2017-12-14T14:18:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T02:32:19.000Z (over 5 years ago)
- Last Synced: 2024-09-29T01:01:18.265Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 45.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MD-CORE
[![version](https://img.shields.io/npm/v/md-core.svg?style=flat-square)](https://www.npmjs.com/package/md-core)
[![downloads](https://img.shields.io/npm/dm/md-core.svg?style=flat-square)](https://www.npmjs.com/package/md-core)**This Package was deprecated. [Unified](https://github.com/unifiedjs/unified) is the better option. And you can use [rehype-prism](https://github.com/Val-istar-Guo/rehype-prism) to highlight code in markdown.**
## Install
```bash
npm install md-core
```## Usage
md-core is just a core, need plugins to parse markdown
see more:
[md-plugins-vig](https://github.com/Val-istar-Guo/md-plugins-vig),
[md-highlight](https://github.com/Val-istar-Guo/md-plugins-highlight).```javascript
// costom your md
// md.js
import md from 'md-core';
import { vigMdPlugins } from 'md-plugins-vig';
import highlightMdPlugins from 'md-plugins-highlight';export default md()
.use(vigMdPlugins())
.use(highlightMdPlugins())
```Then import your costom md
```javascript
import md from './md.js'md.parse('# header').toHTML();
// ->header
```