We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d48b8 commit 580f57cCopy full SHA for 580f57c
client/src/templates/Challenges/classic/editor.tsx
@@ -7,6 +7,7 @@ import type {
7
Range as RangeType
8
// eslint-disable-next-line import/no-duplicates
9
} from 'monaco-editor/esm/vs/editor/editor.api';
10
+import { highlightAllUnder } from 'prismjs';
11
import React, {
12
useEffect,
13
Suspense,
@@ -450,6 +451,7 @@ const Editor = (props: EditorProps): JSX.Element => {
450
451
descContainer.appendChild(jawHeading);
452
descContainer.appendChild(desc);
453
desc.innerHTML = description;
454
+ highlightAllUnder(desc);
455
// TODO: the solution is probably just to use an overlay that's forced to
456
// follow the decorations.
457
// TODO: this is enough for Firefox, but Chrome needs more before the
0 commit comments