mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 14:01:06 +00:00
prevent double blank lines after markdown code blocks (#173)
This commit is contained in:
parent
36dbb2410e
commit
db886746b4
2 changed files with 35 additions and 1 deletions
|
|
@ -267,7 +267,9 @@ export class Markdown implements Component {
|
|||
lines.push(" " + this.theme.codeBlock(codeLine));
|
||||
}
|
||||
lines.push(this.theme.codeBlockBorder("```"));
|
||||
lines.push(""); // Add spacing after code blocks
|
||||
if (nextTokenType !== "space") {
|
||||
lines.push(""); // Add spacing after code blocks (unless space token follows)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue