All files / markdown / plugins / emojis.ts

100.00% Branches 0/0
100.00% Functions 1/1
100.00% Lines 4/4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
x20
 
 
 
 
 
 
 
 
 
 
 
x20
x1
x1















// Imports
import type { MarkdownIt } from "../types.ts"
import { full } from "markdown-it-emoji"

/**
 * Add support for emojis.
 *
 * ```md
 * :bento:
 * ```
 * ```html
 * <p>🍱</p>
 * ```
 */
export default function emojis(engine: MarkdownIt): void {
  engine.use(full)
}