Drop Katex support as we cannot reliably use it in emails

This commit is contained in:
iliajie
2023-06-18 15:47:02 +03:00
parent f6299b4e29
commit c80d854054
63 changed files with 1 additions and 10 deletions

View File

@@ -62,11 +62,6 @@ if ($opts->{'type'} =~ /^(advanced|expert)$/) {
&$load_css_modules(\@highlight_bundle); &$load_css_modules(\@highlight_bundle);
&$load_js_modules($highlight_bundle); &$load_js_modules($highlight_bundle);
} }
if ($opts->{'type'} =~ /^(expert)$/) {
my $katex_bundle = ['katex/katex'];
&$load_css_modules($katex_bundle);
&$load_js_modules($katex_bundle);
}
return $html_editor_load_modules; return $html_editor_load_modules;
} }
@@ -232,8 +227,7 @@ if ($opts->{'type'} eq 'expert') {
[{'list': 'ordered'}, {'list': 'bullet'}], [{'list': 'ordered'}, {'list': 'bullet'}],
[{'indent': '-1'}, {'indent': '+1'}], [{'indent': '-1'}, {'indent': '+1'}],
['blockquote'], ['blockquote'],
(typeof hljs === 'object' && typeof katex === 'object' ? ['code-block', 'formula'] : (typeof hljs === 'object' ? ['code-block'] : []),
typeof hljs === 'object' ? ['code-block'] : typeof katex === 'object' ? ['formula'] : []),
['link'], ['link'],
['image', 'video'], ['image', 'video'],
[{'direction': 'rtl'}], [{'direction': 'rtl'}],
@@ -278,7 +272,6 @@ my $html_editor_init_script =
const editor = new Quill('.ql-container', { const editor = new Quill('.ql-container', {
modules: { modules: {
formula: typeof katex === 'object',
syntax: typeof hljs === 'object', syntax: typeof hljs === 'object',
imageDrop: true, imageDrop: true,
imageResize: { imageResize: {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long