mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
doc: changelog
This commit is contained in:
@@ -43,7 +43,10 @@ function generateRegexRules(delimiters) {
|
||||
});
|
||||
|
||||
// Math formulas can end in special characters
|
||||
const inlineRule = new RegExp(`^(${inlinePatterns.join('|')})(?=[\\s?。,!-\/:-@[-\`{-~]|$)`, 'u');
|
||||
const inlineRule = new RegExp(
|
||||
`^(${inlinePatterns.join('|')})(?=[\\s?。,!-\/:-@[-\`{-~]|$)`,
|
||||
'u'
|
||||
);
|
||||
const blockRule = new RegExp(`^(${blockPatterns.join('|')})(?=[\\s?。,!-\/:-@[-\`{-~]|$)`, 'u');
|
||||
|
||||
return { inlineRule, blockRule };
|
||||
@@ -53,10 +56,7 @@ const { inlineRule, blockRule } = generateRegexRules(DELIMITER_LIST);
|
||||
|
||||
export default function (options = {}) {
|
||||
return {
|
||||
extensions: [
|
||||
inlineKatex(options),
|
||||
blockKatex(options),
|
||||
]
|
||||
extensions: [inlineKatex(options), blockKatex(options)]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user