bent10 / marked-extensions

Marked extensions workspace
https://www.npmjs.com/search?q=keywords:stilearning-marked-extensions
MIT License
32 stars 5 forks source link
extensions gfm markdown marked md plugins

marked-extensions

Marked extensions workspace.

Packages

Package Description Version (click for changelog)
marked-alert Enables GFM alerts npm
marked-directive Supports directives syntax npm
marked-code-format Formatting code blocks using Prettier npm
marked-code-jsx-renderer Render JSX code blocks using a custom renderer and components npm
marked-code-preview Transform code blocks into code previews npm
marked-footnote Enables GFM footnotes. npm
marked-plaintify Converts Markdown to Plaintext npm
marked-sequential-hooks Enables the sequential preprocessing and post-processing npm
marked-shiki Integrating Shiki syntax highlighting npm

Sequential hooks

Incorporate the power of sequential hooks using the following packages within sequential hooks:

Show the example code 🚀 ```js import { Marked } from 'marked' import markedSequentialHooks from 'marked-sequential-hooks' const html = new Marked() .use( markedSequentialHooks({ markdownHooks: [mdHoook1(), mdHook2], htmlHooks: [htmlHook1(), htmlHook2] }) ) .parse('# Content') console.log(html) ```
Package Types Description Version (click for changelog)
marked-hook-data MarkdownHook A sequential hook to load data from files or objects npm
marked-hook-frontmatter MarkdownHook A sequential hook to support frontmatter npm
marked-hook-layout HtmlHook A sequential hook that handles layouts npm

Contributing

We 💛  issues.

When committing, please conform to the semantic-release commit standards. Please install commitizen and the adapter globally, if you have not already.

npm i -g commitizen cz-conventional-changelog

Now you can use git cz or just cz instead of git commit when committing. You can also use git-cz, which is an alias for cz.

git add . && git cz