update 1843

Handle BLOCK_QUOTE nodes
This commit is contained in:
unkn0w7n 2025-07-28 18:16:28 +05:30
parent fe690dbafc
commit be184385ca
2 changed files with 12 additions and 0 deletions

View File

@ -107,6 +107,12 @@ def process_web_node(node):
elif node.get('textJson'):
return f'<blockquote>{parse_textjson(node["textJson"])}</blockquote>'
return f'<blockquote>{node.get("text", "")}</blockquote>'
elif ntype == 'BLOCK_QUOTE':
if node.get('textHtml'):
return f'<blockquote><i>{node.get("textHtml")}</i></blockquote>'
elif node.get('textJson'):
return f'<blockquote><i>{parse_textjson(node["textJson"])}</i></blockquote>'
return f'<blockquote><i>{node.get("text", "")}</i></blockquote>'
elif ntype == 'DIVIDER':
return '<hr>'
elif ntype == 'INFOGRAPHIC':

View File

@ -109,6 +109,12 @@ def process_web_node(node):
elif node.get('textJson'):
return f'<blockquote>{parse_textjson(node["textJson"])}</blockquote>'
return f'<blockquote>{node.get("text", "")}</blockquote>'
elif ntype == 'BLOCK_QUOTE':
if node.get('textHtml'):
return f'<blockquote><i>{node.get("textHtml")}</i></blockquote>'
elif node.get('textJson'):
return f'<blockquote><i>{parse_textjson(node["textJson"])}</i></blockquote>'
return f'<blockquote><i>{node.get("text", "")}</i></blockquote>'
elif ntype == 'DIVIDER':
return '<hr>'
elif ntype == 'INFOGRAPHIC':