"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const asciidoctor_1 = __importDefault(require("asciidoctor")); const asciidoctor = (0, asciidoctor_1.default)(); // Render Asciidoc to HTML (block) const asciidocToHTML = (content, options) => { return asciidoctor.convert(content, { safe: "server", attributes: { showtitle: "", icons: "font@" }, base_dir: options?.baseDirectory }); }; // Render Asciidoc to HTML (inline) const asciidocToHTMLInline = (content, options) => { return asciidoctor.convert(content, { doctype: "inline", base_dir: options?.baseDirectory }); }; exports.default = { block: asciidocToHTML, inline: asciidocToHTMLInline };