llama.cpp/tools/server/webui/src/lib/utils
Sascha Rogmann bcfa87622a
feat(webui): improve LaTeX rendering with currency detection (#16508)
* webui : Revised LaTeX formula recognition

* webui : Further examples containg amounts

* webui : vitest for maskInlineLaTeX

* webui: Moved preprocessLaTeX to lib/utils

* webui: LaTeX in table-cells

* chore: update webui build output (use theirs)

* webui: backslash in LaTeX-preprocessing

* chore: update webui build output

* webui: look-behind backslash-check

* chore: update webui build output

* Apply suggestions from code review

Code maintenance (variable names, code formatting, string handling)

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>

* webui: Moved constants to lib/constants.

* webui: package woff2 inside base64 data

* webui: LaTeX-line-break in display formula

* chore: update webui build output

* webui: Bugfix (font embedding)

* webui: Bugfix (font embedding)

* webui: vite embeds assets

* webui: don't suppress 404 (fonts)

* refactor: KaTeX integration with SCSS

Moves KaTeX styling to SCSS for better customization and font embedding.

This change includes:
- Adding `sass` as a dev dependency.
- Introducing a custom SCSS file to override KaTeX variables and disable TTF/WOFF fonts, relying solely on WOFF2 for embedding.
- Adjusting the Vite configuration to resolve `katex-fonts` alias and inject SCSS variables.

* fix: LaTeX processing within blockquotes

* webui: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
2025-11-03 00:41:08 +01:00
..
api-key-validation.ts Allow viewing conversations even when llama server is down (#16255) 2025-09-26 18:35:42 +02:00
audio-recording.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
autoresize-textarea.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
branching.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
config-helpers.ts Add server-driven parameter defaults and syncing (#16515) 2025-10-15 16:22:20 +02:00
conversation-utils.ts Import/Export UX improvements (#16619) 2025-10-20 13:29:14 +02:00
convert-files-to-extra.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
copy.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
file-preview.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
file-type.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
is-ime-composing.ts Prevent premature submission on IME input (#16673) 2025-10-20 14:21:12 +02:00
latex-protection.test.ts feat(webui): improve LaTeX rendering with currency detection (#16508) 2025-11-03 00:41:08 +01:00
latex-protection.ts feat(webui): improve LaTeX rendering with currency detection (#16508) 2025-11-03 00:41:08 +01:00
modality-file-validation.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
model-names.test.ts webui: introduce OpenAI-compatible model selector in JSON payload (#16562) 2025-10-22 16:58:23 +02:00
model-names.ts webui: introduce OpenAI-compatible model selector in JSON payload (#16562) 2025-10-22 16:58:23 +02:00
pdf-processing.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
portal-to-body.ts webui: introduce OpenAI-compatible model selector in JSON payload (#16562) 2025-10-22 16:58:23 +02:00
precision.ts Add server-driven parameter defaults and syncing (#16515) 2025-10-15 16:22:20 +02:00
process-uploaded-files.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
svg-to-png.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00
text-files.ts Enhance text file detection logic for file attachments (#16199) 2025-09-26 19:25:29 +02:00
webp-to-png.ts SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00