mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Hide the block title when rendering html.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user