parent
41203f8b3f
commit
07eae0a9cd
2 changed files with 5 additions and 1 deletions
|
@ -34,6 +34,10 @@ export const Highlight = ({
|
||||||
|
|
||||||
const preProps = {
|
const preProps = {
|
||||||
className: `language-${language} hljs tw:text-base tw:lg:text-lg tw:whitespace-break-spaces tw:overflow-scroll tw:pr-4`,
|
className: `language-${language} hljs tw:text-base tw:lg:text-lg tw:whitespace-break-spaces tw:overflow-scroll tw:pr-4`,
|
||||||
|
// We have to force the background to override the ifm-pre-backround var
|
||||||
|
style: {
|
||||||
|
backgroundColor: 'var(--code-background-color)',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
if (raw) preProps.dangerouslySetInnerHTML = { __html: raw }
|
if (raw) preProps.dangerouslySetInnerHTML = { __html: raw }
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,7 @@ const PathXrayInfo = ({ path, pathName, stackName, part }) => {
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<H6>Pathstring</H6>
|
<H6>Pathstring</H6>
|
||||||
<Highlight>{path.d}</Highlight>
|
<Highlight language="SVG">{path.d}</Highlight>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue