From 1f5e15131427fb3efeff93cc3f0176353c4ccf0e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 25 Sep 2022 21:54:02 +0100 Subject: [PATCH] Ignore more blocks when getting plaintext --- website/common/streamfield.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/common/streamfield.py b/website/common/streamfield.py index 7f6f018..e348196 100644 --- a/website/common/streamfield.py +++ b/website/common/streamfield.py @@ -63,6 +63,8 @@ IGNORE_PLAINTEXT_BLOCKS = ( EmbedBlock, ImageCaptionBlock, CodeBlock, + MermaidBlock, + IFrameBlock, ) IGNORE_HEADING_BLOCKS = (*IGNORE_PLAINTEXT_BLOCKS, LoremBlock)