site/node_modules/mdast-util-to-markdown/lib/handle/html.js
2024-10-14 08:09:33 +02:00

21 lines
246 B
JavaScript

/**
* @typedef {import('mdast').Html} Html
*/
html.peek = htmlPeek
/**
* @param {Html} node
* @returns {string}
*/
export function html(node) {
return node.value || ''
}
/**
* @returns {string}
*/
function htmlPeek() {
return '<'
}