unifast
  • Bắt đầu nhanh
  • Khái niệm chính
  • unifast là gì?
  • Sử dụng MDX
  • Tích hợp React
  • Tích hợp Vite
  • Tô sáng cú pháp
Gói
  • escapeHtml()
  • extractLang()
  • extractText()
  • findCodeChild()
  • hastToHtml()
  • visitHast()
  • abbr()
  • accessibleEmoji()
  • addClasses()
  • autolinkHeadings()
  • breaks()
  • cjk()
  • codeImport()
  • codeMeta()
  • commentRemoval()
  • compile()
  • customHeadingId()
  • definitionList()
  • directive()
  • emoji()
  • excerpt()
  • externalLinks()
  • figure()
  • frontmatter()
  • gfm()
  • githubAlert()
  • imgLazyLoading()
  • math()
  • minify()
  • readingTime()
  • rubyAnnotation()
  • sanitize()
  • sectionize()
  • smartypants()
  • syntect()
  • toc()
  • treeSitter()
  • wikiLink()
  • createShikiPlugin()
  • createShikiTransformer()
  • highlight()
  • unifastPlugin()
  • compileToReact()
  • hastToReact()

githubAlert()

Hỗ trợ các alert kiểu GitHub trong blockquote (NOTE, TIP, WARNING, v.v.).

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

Chữ ký

function githubAlert(): UnifastPlugin

Tham số

Không có.

Cách dùng

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

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

Ví dụ

Các alert kiểu GitHub

Chỉnh sửa trang này
Trang trướcgfm()Trang saumath()

Made with ❤️ by Kenzo Wada

On this page
  • Chữ ký
  • Tham số
  • Cách dùng
  • Ví dụ
  • Các alert kiểu GitHub