unifast
  • Conceitos Principais
  • Início Rápido
  • O que é unifast?
  • Integração com React
  • Integração com Vite
  • Realce de Sintaxe
  • Usando MDX
Pacotes
  • 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()

Suporta alerts no estilo do GitHub em blockquotes (NOTE, TIP, WARNING, etc.).

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

Assinatura

function githubAlert(): UnifastPlugin

Parâmetros

Nenhum.

Uso

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

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

Exemplos

Alerts no estilo do GitHub

Editar esta página
Anteriorgfm()Próximomath()

Made with ❤️ by Kenzo Wada

On this page
  • Assinatura
  • Parâmetros
  • Uso
  • Exemplos
  • Alerts no estilo do GitHub