Marked extensions workspace.
| Package | Description | Version (click for changelog) |
|---|---|---|
| marked-alert | Enables GFM alerts | |
| marked-directive | Supports directives syntax | |
| marked-code-format | Formatting code blocks using Prettier | |
| marked-code-jsx-renderer | Render JSX code blocks using a custom renderer and components | |
| marked-code-preview | Transform code blocks into code previews | |
| marked-footnote | Enables GFM footnotes. | |
| marked-plaintify | Converts Markdown to Plaintext | |
| marked-sequential-hooks | Enables the sequential preprocessing and post-processing | |
| marked-shiki | Integrating Shiki syntax highlighting |
Incorporate the power of sequential hooks using the following packages within sequential hooks:
Show the example code 🚀
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 | |
| marked-hook-frontmatter | MarkdownHook |
A sequential hook to support frontmatter | |
| marked-hook-layout | HtmlHook |
A sequential hook that handles layouts |
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-changelogNow 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