mirror of https://github.com/zulip/zulip.git
marked: Rename to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
daa9552548
commit
905fc3b50e
|
@ -10,7 +10,7 @@ pnpm-lock.yaml
|
||||||
/web/third/marked/*
|
/web/third/marked/*
|
||||||
!/web/third/marked/lib
|
!/web/third/marked/lib
|
||||||
/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/tests/fixtures
|
||||||
/zerver/webhooks/*/doc.md
|
/zerver/webhooks/*/doc.md
|
||||||
/zerver/webhooks/github/githubsponsors.md
|
/zerver/webhooks/github/githubsponsors.md
|
||||||
|
|
|
@ -102,7 +102,7 @@ places:
|
||||||
|
|
||||||
- The backend Markdown processor (`zerver/lib/markdown/__init__.py`).
|
- The backend Markdown processor (`zerver/lib/markdown/__init__.py`).
|
||||||
- The frontend Markdown processor (`web/src/markdown.ts` and sometimes
|
- 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.
|
your changes won't be supported in the frontend processor.
|
||||||
- If desired, the typeahead logic in `web/src/composebox_typeahead.ts`.
|
- 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`.
|
- The test suite, probably via adding entries to `zerver/tests/fixtures/markdown_test_cases.json`.
|
||||||
|
|
|
@ -5,13 +5,13 @@ import assert from "minimalistic-assert";
|
||||||
import type {Template} from "url-template";
|
import type {Template} from "url-template";
|
||||||
|
|
||||||
import * as fenced_code from "../shared/src/fenced_code.ts";
|
import * as fenced_code from "../shared/src/fenced_code.ts";
|
||||||
import marked from "../third/marked/lib/marked.js";
|
import marked from "../third/marked/lib/marked.cjs";
|
||||||
import type {LinkifierMatch, ParseOptions, RegExpOrStub} from "../third/marked/lib/marked.js";
|
import type {LinkifierMatch, ParseOptions, RegExpOrStub} from "../third/marked/lib/marked.cjs";
|
||||||
|
|
||||||
// This contains zulip's frontend Markdown implementation; see
|
// This contains zulip's frontend Markdown implementation; see
|
||||||
// docs/subsystems/markdown.md for docs on our Markdown syntax. The other
|
// docs/subsystems/markdown.md for docs on our Markdown syntax. The other
|
||||||
// main piece in rendering Markdown client-side is
|
// 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.
|
// modified from the original implementation.
|
||||||
|
|
||||||
// Docs: https://zulip.readthedocs.io/en/latest/subsystems/markdown.html
|
// Docs: https://zulip.readthedocs.io/en/latest/subsystems/markdown.html
|
||||||
|
|
Loading…
Reference in New Issue