Skip to content

Commit 10046a9

Browse files
authored
fix: remove overzealous lookahead (#261)
1 parent e268085 commit 10046a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspace/aubade/src/artisan/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ function construct(cursor: Context['cursor']): null | {
592592
}
593593

594594
// codespan precedence over link grouping
595-
const lookahead = cursor.see(0) === '`' || !!cursor.peek(/`/);
595+
const lookahead = cursor.see(0) === '`';
596596
const backtick = target.includes('`') || title.includes('`');
597597
const invalid = label.includes('`') && (backtick || lookahead);
598598
if (invalid || target.includes('\n')) return null;

0 commit comments

Comments
 (0)