{"version":3,"sources":["../../src/html-preprocessor/index.ts"],"sourcesContent":["/**\n * Replace all new lines (mostly from <pre />s) with &#10;, so that the MDX parser\n * doesn't treat them as new paragraphs and such.\n */\nconst loader = function (source: string) {\n  // very hacky\n  const htmlStart = source.search(/<!DOCTYPE html>/i);\n  const frontmatter = source.slice(0, htmlStart);\n  return frontmatter + source.slice(htmlStart).replace(/\\n/g, '&#10;');\n};\n\nexport default loader;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,IAAM,SAAS,SAAU,QAAgB;AAEvC,QAAM,YAAY,OAAO,OAAO,kBAAkB;AAClD,QAAM,cAAc,OAAO,MAAM,GAAG,SAAS;AAC7C,SAAO,cAAc,OAAO,MAAM,SAAS,EAAE,QAAQ,OAAO,OAAO;AACrE;AAEA,IAAO,4BAAQ;","names":[]}