8000 GitHub - ryotarofr/markdown_demo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ryotarofr/markdown_demo

Repository files navigation

⛏️マークダウンデモ

next.js(app router) で検証中。

概要

markdown-rs を使用して、コンパイルした関数を WebAssembly 経由で JavaScript から呼び出す。

機能

  • syntax highlight
  • custom componennt
  • github ファイルのインポート
  • 数式プラグイン
  • TOH
  • ...other

wasm build command

wasm-pack build --target web

custom componennt

public/ に jsx を作成してください。 build 後、js として利用可能です。

# build
esbuild public/hoge.jsx --bundle --format=esm --external:react --outfile=public/hoge.js

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0