"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const marked_esm = require("../../../../_vendor/marked/lib-marked.esm.cjs");
function parseMarkdownIntoBlocks(markdown) {
  const tokens = marked_esm.marked.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";
}
exports.extractLanguage = extractLanguage;
exports.parseMarkdownIntoBlocks = parseMarkdownIntoBlocks;
//# sourceMappingURL=index.cjs.map
