Skip to content

Commit

Permalink
More doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-42 committed Oct 19, 2020
1 parent ee111f1 commit a02bc65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Documentation.tsx
Expand Up @@ -92,7 +92,8 @@ const docRendererParents = [] as (SectionNode | null)[];

const docRenderer = {
code(code: string, infostring: string, escaped: boolean) {
return `<pre><code class="hljs cpp c++">${hljs.highlight("c++", code).value}</code></pre>`;
if (infostring == "") infostring = "c++"
return `<pre><code class="hljs ${infostring}">${hljs.highlight(infostring, code).value}</code></pre>`;
},
heading(text: string, level: number) {
let section = addToHierarchy({ text, depth: level }, docRendererHierarchy, docRendererParents);
Expand Down

0 comments on commit a02bc65

Please sign in to comment.