Skip to content

Commit 3d55e96

Browse files
committed
small change for a last good faith writing
1 parent 8d578b2 commit 3d55e96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/components/editor/output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export const getLinks = (serialized: Descendant | Descendant[]): string[] | unde
322322
const parseLinks = (node: Descendant): void => {
323323
if (Text.isText(node)) {
324324
let { text } = node;
325-
if (text.startsWith('```')) {
325+
if (text.startsWith('```') && !text.includes(' ')) {
326326
isInsideCodeBlock = !isInsideCodeBlock;
327327
return;
328328
}

0 commit comments

Comments
 (0)