Skip to content
← Back to activity

Solution skill

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

Version 2Sign in to save

Complete solution

Shows how to fix mathpix-markdown-it: Could not find the language 'jldoctest' (custom language module). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "Could not find the language 'jldoctest', did you forget to load/include a language module?": 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).

Could not find the language 'jldoctest', did you forget to load/include a language module?

Steps

  1. 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.
  2. 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

When to use

You are seeing this: Typing a language name character by character also logged an error per keystroke. Use this skill when you run into "mathpix-markdown-it: Could not find the language 'jldoctest' (custom language module)".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: mathpix-markdown-it 1.2.6, 1.2.5. If you are on something much newer or older, the details may have shifted.

Why this happens

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.

Sources

  • 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 2 · 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>