LearnNewsExamplesServices
Frontmatter
id8385
titleAdd support for 'text' language in Markdown code blocks
stateClosed
labels
documentationenhancementai
assigneestobiu
createdAtJan 7, 2026, 3:26 PM
updatedAtJan 7, 2026, 3:36 PM
githubUrlhttps://github.com/neomjs/neo/issues/8385
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 7, 2026, 3:36 PM

Add support for 'text' language in Markdown code blocks

Closed v11.19.0 documentationenhancementai
tobiu
tobiu commented on Jan 7, 2026, 3:26 PM

The NeuralLink.md guide contains an ASCII tree diagram that lacks syntax highlighting and consistent styling because it is in a plain code block.

To resolve this, we should add support for a text or plaintext language in our Markdown processing pipeline.

Tasks:

  1. Update buildScripts/buildHighlightJs.mjs: Add plaintext to the languages array.
  2. Update src/component/Markdown.mjs: Update regexReadonly to include text (and map it to plaintext for highlight.js if needed, though highlightAuto might handle it).
  3. Update learn/guides/mcp/NeuralLink.md: Change the ASCII tree block to use ````text readonly`.

This will ensure the block is rendered with the same pre.hljs styling as other code blocks.

tobiu added the documentation label on Jan 7, 2026, 3:26 PM
tobiu added the enhancement label on Jan 7, 2026, 3:26 PM
tobiu added the ai label on Jan 7, 2026, 3:26 PM
tobiu assigned to @tobiu on Jan 7, 2026, 3:30 PM
tobiu referenced in commit 8802e49 - "Add support for 'text' language in Markdown code blocks #8385" on Jan 7, 2026, 3:30 PM
tobiu closed this issue on Jan 7, 2026, 3:36 PM