marked: Rename to *.cjs.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-11-12 22:17:10 -08:00 committed by Tim Abbott
parent daa9552548
commit 905fc3b50e
5 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ pnpm-lock.yaml
/web/third/marked/*
!/web/third/marked/lib
/web/third/marked/lib/*
!/web/third/marked/lib/marked.d.ts
!/web/third/marked/lib/marked.d.cts
/zerver/tests/fixtures
/zerver/webhooks/*/doc.md
/zerver/webhooks/github/githubsponsors.md

View File

@ -102,7 +102,7 @@ places:
- The backend Markdown processor (`zerver/lib/markdown/__init__.py`).
- The frontend Markdown processor (`web/src/markdown.ts` and sometimes
`web/third/marked/lib/marked.js`), or `markdown.contains_backend_only_syntax` if
`web/third/marked/lib/marked.cjs`), or `markdown.contains_backend_only_syntax` if
your changes won't be supported in the frontend processor.
- If desired, the typeahead logic in `web/src/composebox_typeahead.ts`.
- The test suite, probably via adding entries to `zerver/tests/fixtures/markdown_test_cases.json`.

View File

@ -5,13 +5,13 @@ import assert from "minimalistic-assert";
import type {Template} from "url-template";
import * as fenced_code from "../shared/src/fenced_code.ts";
import marked from "../third/marked/lib/marked.js";
import type {LinkifierMatch, ParseOptions, RegExpOrStub} from "../third/marked/lib/marked.js";
import marked from "../third/marked/lib/marked.cjs";
import type {LinkifierMatch, ParseOptions, RegExpOrStub} from "../third/marked/lib/marked.cjs";
// This contains zulip's frontend Markdown implementation; see
// docs/subsystems/markdown.md for docs on our Markdown syntax. The other
// main piece in rendering Markdown client-side is
// web/third/marked/lib/marked.js, which we have significantly
// web/third/marked/lib/marked.cjs, which we have significantly
// modified from the original implementation.
// Docs: https://zulip.readthedocs.io/en/latest/subsystems/markdown.html