diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mfm/parser.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mfm/parser.ts b/src/mfm/parser.ts index b86e1d5559..5572e26f88 100644 --- a/src/mfm/parser.ts +++ b/src/mfm/parser.ts @@ -361,6 +361,7 @@ const mfm = P.createLanguage({ const match = text.match(/^((【|\[)(.+?)(】|]))(\n|$)/); if (!match) return P.makeFailure(i, 'not a title'); const q = match[1].trim().substring(1, match[1].length - 1); + if (q.includes('】')) return P.makeFailure(i, 'not a title'); const contents = P.alt( r.big, r.small, |