@stoplight/markdown
v3.2.0
Published
Useful functions when working with Markdown.
Downloads
137,160
Maintainers
Readme
@stoplight/markdown
Useful functions when working with Markdown. Leverages the Unified / Remark ecosystem under the hood.
Installation
Supported in modern browsers and node.
# latest stable
yarn add @stoplight/markdown
Usage
Example parse
import { parse } from '@stoplight/markdown';
const result = parse('**markdown**');
console.log(result); // => the MDAST compliant tree
Contributing
- Clone repo.
- Create / checkout
feature/{name}
,chore/{name}
, orfix/{name}
branch. - Install deps:
yarn
. - Make your changes.
- Run tests:
yarn test.prod
. - Stage relevant files to git.
- Commit:
yarn commit
. NOTE: Commits that don't follow the conventional format will be rejected.yarn commit
creates this format for you, or you can put it together manually and then do a regulargit commit
. - Push:
git push
. - Open PR targeting the
develop
branch.