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)