fix: detect markdown image syntax  as strong signal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cc1aa7f989
commit
6f779e8b24
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,8 @@ export function containsMarkdown(content: string): boolean {
|
||||||
// Strong signals — any single one triggers markdown
|
// Strong signals — any single one triggers markdown
|
||||||
const strongPatterns = [
|
const strongPatterns = [
|
||||||
/^```/m, // code fence
|
/^```/m, // code fence
|
||||||
/\|[\s]*:?-+:?[\s]*\|/ // table separator |---|
|
/\|[\s]*:?-+:?[\s]*\|/, // table separator |---|
|
||||||
|
/!\[[^\]]*\]\(/ // image  {
|
for (const pattern of strongPatterns) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue