chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-04-12 18:12:59 -05:00
parent 4292358bd5
commit 25898116ea
55 changed files with 638 additions and 489 deletions
+1 -3
View File
@@ -101,9 +101,7 @@ export const tokenizeDisplayMath = (
() => !requireBlockBoundary || isBlockBoundary(src, afterClose)
];
return validators.every((v) => v())
? { type, raw, text, displayMode: true }
: undefined;
return validators.every((v) => v()) ? { type, raw, text, displayMode: true } : undefined;
};
export default function (options = {}) {
+5 -1
View File
@@ -41,7 +41,11 @@ export function mentionExtension(opts: MentionOptions = {}) {
// mentionStart fires on every '<' in the document, making the tokenizer a hot path.
const trigger = opts.triggerChar ?? '@';
const re = new RegExp(`^<\\${trigger}([\\w.\\-:/]+)(?:\\|([^>]*))?>`);
const snapshot: MentionOptions = { triggerChar: trigger, className: opts.className, extraAttrs: opts.extraAttrs };
const snapshot: MentionOptions = {
triggerChar: trigger,
className: opts.className,
extraAttrs: opts.extraAttrs
};
return {
name: 'mention',