Don't show code in plaintext
This commit is contained in:
parent
8a55275db7
commit
11932fa49e
1 changed files with 6 additions and 1 deletions
|
@ -54,7 +54,12 @@ class TangentBlock(blocks.StructBlock):
|
||||||
template = "common/blocks/tangent.html"
|
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)
|
IGNORE_HEADING_BLOCKS = (*IGNORE_PLAINTEXT_BLOCKS, LoremBlock)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue