the editable site (validation-lab)
This commit is contained in:
commit
3ac81d5a52
13454 files changed
+2227005
No files matched your search
+27
@@ -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 '<'
|
||||
}
|
||||
Reference in new issue
Block a user