mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-25 18:55:19 +02:00
Update markdown parsing to correctly split on triple backticks, improving block extraction logic.
This commit is contained in:
parent
d0cd917d06
commit
5289bf6ced
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const copilotCodeMarker = "copilot_change\n";
|
|||
function parseMarkdown(markdown: string): Block[] {
|
||||
// Split on triple backticks but keep the delimiters
|
||||
// This gives us the raw content between and including delimiters
|
||||
const parts = markdown.split("\n```");
|
||||
const parts = markdown.split(/(?:\n|^)```/);
|
||||
const blocks: Block[] = [];
|
||||
|
||||
for (const part of parts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue