UNPKG

@podlite/schema

Version:

AST tools for Podlite markup language

26 lines 730 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.core = void 0; const __1 = require(".."); exports.core = { ':image': { toHtml: writer => node => { if (typeof node !== 'string' && 'type' in node && node.type === 'image') { writer.writeRaw(`<img`); writer.writeRaw(` src="${node.src}"`); if (node.alt) { writer.writeRaw(` alt="${node.alt}"`); } writer.writeRaw(`/>`); } }, }, image: { toHtml: __1.content, }, root: { toHtml: __1.content, }, }; exports.default = exports.core; //# sourceMappingURL=corePlugins.js.map