mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-07 04:59:13 +08:00
21 lines
290 B
Text
21 lines
290 B
Text
/**
|
|
* @typedef {import('mdast').HTML} HTML
|
|
* @typedef {import('../types.js').Handle} Handle
|
|
*/
|
|
|
|
html.peek = htmlPeek
|
|
|
|
/**
|
|
* @type {Handle}
|
|
* @param {HTML} node
|
|
*/
|
|
export function html(node) {
|
|
return node.value || ''
|
|
}
|
|
|
|
/**
|
|
* @type {Handle}
|
|
*/
|
|
function htmlPeek() {
|
|
return '<'
|
|
}
|