import MarkdownIt from "markdown-it";
import tooltipPlugin from "./markdown-tooltip.js";
export const md = new MarkdownIt({ html: true, linkify: false, breaks: true }).use(tooltipPlugin);
export function renderMarkdown(source, options) {
  return options?.block ? md.render(source) : md.renderInline(source);
}
