Open jstuckey opened 1 year ago
I experimented a bit using the scripts siteConfig option, but no luck. I need to run a script similar to this:
var hljs = require('highlight.js');
var hljsCurl = require('highlightjs-curl');
hljs.registerLanguage("curl", hljsCurl);
The issue is highlight.js is not available. I looked through the sources tab in dev tools, and it looks like highlight.js is not included.
The portal is using prismjs for syntax highlighting code blocks in Markdown with these supported languages: https://prismjs.com/#supported-languages
Ah, thank you @adamaltman. Should this documentation be updated? https://redocly.com/docs/developer-portal/guides/markdown/#built-with
The portal is using highlight.js for syntax highlighting code blocks in markdown. highlight.js supports adding third-party languages, but are we able to use that feature in the portal? I was hoping to add syntax highlighting for
curl
code blocks.