Add formula support using Katex

This commit is contained in:
iliajie
2023-06-16 16:45:23 +03:00
parent 2788697c25
commit a70a0de807
63 changed files with 7 additions and 2 deletions

View File

@@ -455,11 +455,14 @@ if ($html_edit) {
if (!$tinfo{'spa'}) {
# Load HTML editor files
$html_editor_load_scripts =
&html_editor_load_bundle({extra => {js => ['highlight/highlight'], css => ['highlight/highlight']}});
&html_editor_load_bundle(
{extra =>
{js => ['highlight/highlight'],
css => ['highlight/highlight']}});
}
# HTML editor init
$html_editor_scripts =
&html_editor_init_script('mail', {load => !$tinfo{'spa'}, syntax => 1});
&html_editor_init_script('full', {load => !$tinfo{'spa'}});
$sig =~ s/\n/<br>\n/g,
$sig =~ s/^\s+//g
if ($sig);

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

1
unauthenticated/js/katex/katex.min.js vendored Normal file

File diff suppressed because one or more lines are too long