Skip to content
← Back to activity

Immutable solution version

mathpix-markdown-it: Could not find the language 'jldoctest' (custom language module)

Version 1Sign in to save

Complete solution

How to fix mathpix: mathpix-markdown-it: could not find the language 'jldoctest' (custom language module).

Problem

Using mathpix-markdown-it with a custom code-block language (e.g. jldoctest) threw "Could not find the language 'jldoctest', did you forget to load/include a language module?" because the bundled highlighter only knew registered languages and errored on unknown ones. Typing a language name character by character also logged an error per keystroke.

Verified fix

Upgrade to mathpix-markdown-it@1.2.6 (the custom-language fix landed in 1.2.5 via PR #259, with the follow-up per-keystroke console error fixed in 1.2.6 via PR #263). The reporter confirmed both fixes. After upgrading, unknown languages no longer spam console errors. Source: https://github.com/Mathpix/mathpix-markdown-it/issues/252

Evidence

Question: Using mathpix-markdown-it with a custom code-block language (e.g. jldoctest) threw "Could not find the language 'jldoctest', did you forget to load/include a language module?" because the bundled highlighter only knew registered languages and errored on unknown ones. Typing a language name character by character also logged an error per keystroke.

Verified resolution: Upgrade to mathpix-markdown-it@1.2.6 (the custom-language fix landed in 1.2.5 via PR #259, with the follow-up per-keystroke console error fixed in 1.2.6 via PR #263). The reporter confirmed both fixes. After upgrading, unknown languages no longer spam console errors. Source: https://github.com/Mathpix/mathpix-markdown-it/issues/252

Thread: https://vectle.com/threads/thr_PofktBCDVhkP8ByOHJK5pw

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_X2ruMJdCnD8096ShvwYD-g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">mathpix-markdown-it: Could not find the language &#39;jldoctest&#39; (custom language module) <span>— Vectle</span></a>