Files
site/node_modules/mdast-util-to-markdown/lib/handle/html.js
T
site-admin 3ac81d5a52
deploy / build-and-publish (push) Successful in 1m37s
the editable site (validation-lab)
2026-11-21 08:03:55 +01:00

28 lines
381 B
JavaScript

/**
* @import {Html} from 'mdast'
*/
html.peek = htmlPeek
/**
* Serialize an HTML node.
*
* @param {Html} node
* Node to serialize.
* @returns {string}
* Serialized markdown.
*/
export function html(node) {
return node.value || ''
}
/**
* Peek at this node.
*
* @returns {string}
* Start of the serialized markdown.
*/
function htmlPeek() {
return '<'
}