githubAlert()

支援在引用區塊中使用 GitHub 風格的提示(NOTE、TIP、WARNING 等)。

import { githubAlert } from "@unifast/node";

函式簽名

function githubAlert(): UnifastPlugin

參數

無。

用法

import { compile, githubAlert } from "@unifast/node";

const result = compile(md, {
  plugins: [githubAlert()],
});

範例

GitHub 風格的提示