KaTeX / KaTeX/KaTeX

Support compatibility with RequireJS

Open
#3,793 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
20.4k
Forks
1.3k
Avg merge
14h 37m
Merged PRs (30d)
7

Description

I want to use [RequireJS](https://requirejs.org/docs/api.html#cjsmodule) in my project so I can modularize my HTML/Javascript projects and allow my colleagues to view them by clicking on a file. (ES6 modules are not possible to use because of CORS with `file://` URLs)

KaTeX appears to be incompatible with RequireJS because it assumes certain semantics about "define" and "require" which appear to be from CommonJS.

Is there a way to make KaTeX compatible with RequireJS?

Contributor guide

Open the contributing guide

Research direction

No source file or test is named in the issue. Start by reproducing KaTeX loading through RequireJS from a file:// URL, then trace the module-loading entry points involved; done means KaTeX loads and renders correctly under RequireJS without breaking its existing loading modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.