Closed
Description
📗 API Reference Docs Problem
- Version: n/a
- Platform: n/a
- Subsystem: n/a
Location
Section of the site where the content exists
Affected URL(s):
- https://nodejs.org/api/embedding.html
- Any other document w/ a Markdown code fence
Problem description
Concise explanation of what you found to be problematic
While looking into #32938, I discovered that currently, every single <pre> tag gets highlighted as JavaScript regardless of the info string specified (and even if left unspecified). The following line executes the code that does this.
Line 56 in 94e5b5c
This behavior can be observed in the C++ code blocks in the published API reference documents. The following line is the reason for this — the language has been hard-coded.
node/doc/api_assets/sh_main.js
Line 542 in 94e5b5c
- I would like to work on this issue and submit a pull request.
^ I'm currently on summer vacation, so I would have the time to work on this.
/cc @Trott