ZD

zenn-dev/zenn-editor

Developer tools

This page was translated automatically. Technical details may differ from the original. View the original

748 stars Quality 73 Trend 41MIT

Convert markdown to html

Overview

This repository mainly manages Zenn's Markdown package. By using these packages, you can check the peri al systems like Zenn CLI and Zenn’s VSCode extension. This project does not follow strict semantic versioning. Currently, the version up including destructive changes is supported by the recent version up. Please see the release page for details. You need to combine multiple packages to use the same Markdown as Zenn. Convert Markdown to HTML as follows: This process can only be executed in Node.js. Please note that if you run in a browser, it will be an error. The class name of the parent element that embeds the acquired HTML must be specified as znc. This is necessary to apply the described below. By loading the following script, you can use embedded notations such as Tweet and Mer。. This script reads in the tag. Also, please note that if you specify the defer or async attribute, it may not be embedded correctly at the time of page transition in SPA etc. zenn-embed-elements are not supported by SSR, so you need to load it on the client side。

Overview (machine translated)

This repository mainly manages Zenn’s Markdown package. By using these packages, you can check the peri al systems like Zenn CLI and Zenn’s VSCode extension.

! WARNING

This project does not follow strict semantic versioning. Currently, the version up including destructive changes is supported by the recent version up. Please see the release page for details.

Package List

| Package name | Description | | — | | | zenn-cli | CLI for displaying local articles and books | | zenn-content- Marks | Markdown | zenn-embed-elements | Web Components | | zenn-markdown-html | Markdown to HTML | zenn-model

Use the same Markdown style as Zenn

You need to combine multiple packages to use the same Markdown as Zenn.

1. Convert Markdown to HTML with [T0]

Convert Markdown to HTML as follows: This process can only be executed in Node.js. Please note that if you run in a browser, it will be an error.

The class name of the parent element that embeds the acquired HTML must be specified as [T1]. This is necessary to apply the described below.

2. Read

3. Load script to enable embedded content

By loading the following script, you can use embedded notations such as Tweet and Mer。.

This script is read in the [T2] tag. Also, please note that if you specify the defer or async attribute, it may not be embedded correctly at the time of page transition in SPA etc.

4. (only when using KaTeX notation) zenn-embed-elements]

zenn-embed-elements] does not support SSR, so it is necessary to load it on the client side。

This page was translated automatically. Technical details may differ from the original.

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add zenn-dev/zenn-editor
New to MCP? Start with the mcpskill.org guide →