Skip to content

Convert markdown to html in Zenn format

Notifications You must be signed in to change notification settings

taigaskg/zenn-editor

 
 

Repository files navigation

Zenn Editor

CLI Documentation

Use on your website

  1. Convert markdown to html with zenn-markdown-html.
import markdownHtml from "zenn-markdown-html"

const html = markdownHtml(markdown);
  1. Import styles for content.
import "zenn-content-css"
  1. Enable web-components for embedding.

Some embedded contents such as Tweet, Gist are made with Web Components. To enable these contents embedded, import zenn-embed-elements on client.

// with React
useEffect(()=> {
  import('zenn-embed-elements');
})

Note that zenn-embed-elements is not working with SSR.

Authors

Contributors


Licence

MIT

About

Convert markdown to html in Zenn format

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 78.5%
  • SCSS 9.3%
  • HTML 7.1%
  • JavaScript 5.1%