the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
/**
* @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 '<'
}