secst
Version:
SECST is a semantic, extensible, computational, styleable tagged markup language. You can use it to joyfully create compelling, interactive documents backed by HTML.
17 lines (15 loc) • 446 B
JavaScript
import phrasingContent from "./phrasing-content.js";
const characterEntity = {
htmlDocLink: "",
contentAllowed: true,
transform(node) {
const values = node.content[0].split(" ");
node.content = [values.map((item) => "&"+item+";").join("")];
return node;
},
beforeMount(node) {
node.tag = "span";
return node;
}
}
export {characterEntity,characterEntity as default}