Commit Graph

3 Commits

Author SHA1 Message Date
Cesar Montoya
89c7aa45e0 fenced_code: Add tests for wrap_code, quote/math/spoiler blocks.
Cover the previously untested functionality in fenced_code.ts:
wrap_code with and without language (including HTML escaping and
newline trimming), initialize with pygments data, and
process_fenced_code for quote blocks, math blocks (valid and
invalid LaTeX), spoiler blocks with stash_func, tilde fences,
language specifiers, and unclosed blocks.
2026-03-10 13:06:45 -07:00
Shubham Padia
5636bf9e4e shared: Move fenced_code.ts to web/src.
This file was meant to be shared with the zulip react native app. Since
we have moved to zulip-flutter app in production as well, we can move
this file to web/src.

https://chat.zulip.org/#narrow/channel/6-frontend/topic/web.2Fshared

We replace `replace` with `replaceAll` since eslint was complaining
about it after the move.
2025-11-11 09:06:18 -08:00
Anders Kaseorg
687f1b1651 tests: Rename the Node tests to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-13 09:18:56 -08:00