import { marked as d } from "../../../../_vendor/marked/lib-marked.esm.js";
function parseMarkdownIntoBlocks(markdown) {
  const tokens = d.lexer(markdown);
  return tokens.map((token) => token.raw);
}
function extractLanguage(className) {
  if (!className) return "plaintext";
  const match = className.match(/language-(\w+)/);
  return match ? match[1] : "plaintext";
}
export {
  extractLanguage,
  parseMarkdownIntoBlocks
};
//# sourceMappingURL=index.js.map
