Don't show code in plaintext

This commit is contained in:
Jake Howard 2022-07-29 09:09:35 +01:00
parent 8a55275db7
commit 11932fa49e
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -54,7 +54,12 @@ class TangentBlock(blocks.StructBlock):
template = "common/blocks/tangent.html"
IGNORE_PLAINTEXT_BLOCKS = (blocks.RawHTMLBlock, EmbedBlock, ImageCaptionBlock)
IGNORE_PLAINTEXT_BLOCKS = (
blocks.RawHTMLBlock,
EmbedBlock,
ImageCaptionBlock,
CodeBlock,
)
IGNORE_HEADING_BLOCKS = (*IGNORE_PLAINTEXT_BLOCKS, LoremBlock)