UNPKG

@awesome-fe/translate

Version:
13 lines 887 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mastToHastHandlers = void 0; var all = require("mdast-util-to-hast/lib/all"); exports.mastToHastHandlers = { emphasis: function (h, node) { return h(node, 'em', { 'nt__marker': node.marker }, all(h, node)); }, strong: function (h, node) { return h(node, 'strong', { 'nt__marker': node.marker }, all(h, node)); }, listItem: function (h, node) { return h(node, 'li', { 'nt__marker': node.marker }, all(h, node)); }, linkReference: function (h, node) { return h(node, 'a', { href: 'linkRef:' + node.identifier }, all(h, node)); }, anchor: function (h, node) { return h(node, 'a', { name: node.name }, all(h, node)); }, plainHtml: function (h, node) { return h(node, 'plain-html', { value: escape(node.value) }, all(h, node)); }, }; //# sourceMappingURL=mast-to-hast-handlers.js.map