From be184385ca47890c853d1b92dcefebaf8b2c3504 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:16:28 +0530 Subject: [PATCH] update 1843 Handle BLOCK_QUOTE nodes --- recipes/1843.recipe | 6 ++++++ recipes/economist_news.recipe | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/recipes/1843.recipe b/recipes/1843.recipe index fb3c729e03..44921e5d24 100644 --- a/recipes/1843.recipe +++ b/recipes/1843.recipe @@ -107,6 +107,12 @@ def process_web_node(node): elif node.get('textJson'): return f'
{parse_textjson(node["textJson"])}
' return f'
{node.get("text", "")}
' + elif ntype == 'BLOCK_QUOTE': + if node.get('textHtml'): + return f'
{node.get("textHtml")}
' + elif node.get('textJson'): + return f'
{parse_textjson(node["textJson"])}
' + return f'
{node.get("text", "")}
' elif ntype == 'DIVIDER': return '
' elif ntype == 'INFOGRAPHIC': diff --git a/recipes/economist_news.recipe b/recipes/economist_news.recipe index 7962a9067f..af6747e721 100644 --- a/recipes/economist_news.recipe +++ b/recipes/economist_news.recipe @@ -109,6 +109,12 @@ def process_web_node(node): elif node.get('textJson'): return f'
{parse_textjson(node["textJson"])}
' return f'
{node.get("text", "")}
' + elif ntype == 'BLOCK_QUOTE': + if node.get('textHtml'): + return f'
{node.get("textHtml")}
' + elif node.get('textJson'): + return f'
{parse_textjson(node["textJson"])}
' + return f'
{node.get("text", "")}
' elif ntype == 'DIVIDER': return '
' elif ntype == 'INFOGRAPHIC':