Hide the block title when rendering html.

This commit is contained in:
Enrico Ros
2024-06-19 08:49:16 -07:00
parent bfb3501dec
commit a5f6f62559
+4 -1
View File
@@ -175,7 +175,10 @@ function RenderCodeImpl(props: RenderCodeImplProps) {
const canStackBlitz = blockComplete && isStackBlitzSupported(inferredCodeLanguage);
const showBlockTitle = blockTitle != inferredCodeLanguage && (blockTitle.includes('.') || blockTitle.includes('://'));
let showBlockTitle = blockTitle != inferredCodeLanguage && (blockTitle.includes('.') || blockTitle.includes('://'));
// disable the block title when rendering HTML
if (renderHTML)
showBlockTitle = false;
const handleCopyToClipboard = (e: React.MouseEvent) => {