MP: fix editing

This commit is contained in:
Enrico Ros
2024-06-24 22:29:21 -07:00
parent 2c4c13bc2c
commit 9fa33eea73
2 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -96,9 +96,9 @@ export const overlayButtonsSx: SxProps = {
interface RenderCodeBaseProps {
codeBlock: CodeBlock,
fitScreen?: boolean,
initialShowHTML?: boolean,
noCopyButton?: boolean,
optimizeLightweight?: boolean,
initialShowHTML?: boolean,
sx?: SxProps,
}
@@ -176,7 +176,7 @@ function RenderCodeImpl(props: RenderCodeImplProps) {
const canStackBlitz = blockComplete && isStackBlitzSupported(inferredCodeLanguage);
let showBlockTitle = blockTitle != inferredCodeLanguage && (blockTitle.includes('.') || blockTitle.includes('://'));
let showBlockTitle = (blockTitle != inferredCodeLanguage) && (blockTitle.includes('.') || blockTitle.includes('://'));
// hide the block title when rendering HTML
if (renderHTML)
showBlockTitle = false;