mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
fix copilot ui code-block recognition
This commit is contained in:
parent
ade96aee13
commit
fcfe5593b4
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const copilotCodeMarker = "copilot_change\n";
|
||||||
function parseMarkdown(markdown: string): Block[] {
|
function parseMarkdown(markdown: string): Block[] {
|
||||||
// Split on triple backticks but keep the delimiters
|
// Split on triple backticks but keep the delimiters
|
||||||
// This gives us the raw content between and including delimiters
|
// This gives us the raw content between and including delimiters
|
||||||
const parts = markdown.split("```");
|
const parts = markdown.split("\n```");
|
||||||
const blocks: Block[] = [];
|
const blocks: Block[] = [];
|
||||||
|
|
||||||
for (const part of parts) {
|
for (const part of parts) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue