mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
194116a302
@ -107,6 +107,12 @@ def process_web_node(node):
|
|||||||
elif node.get('textJson'):
|
elif node.get('textJson'):
|
||||||
return f'<blockquote>{parse_textjson(node["textJson"])}</blockquote>'
|
return f'<blockquote>{parse_textjson(node["textJson"])}</blockquote>'
|
||||||
return f'<blockquote>{node.get("text", "")}</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':
|
elif ntype == 'DIVIDER':
|
||||||
return '<hr>'
|
return '<hr>'
|
||||||
elif ntype == 'INFOGRAPHIC':
|
elif ntype == 'INFOGRAPHIC':
|
||||||
|
@ -109,6 +109,12 @@ def process_web_node(node):
|
|||||||
elif node.get('textJson'):
|
elif node.get('textJson'):
|
||||||
return f'<blockquote>{parse_textjson(node["textJson"])}</blockquote>'
|
return f'<blockquote>{parse_textjson(node["textJson"])}</blockquote>'
|
||||||
return f'<blockquote>{node.get("text", "")}</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':
|
elif ntype == 'DIVIDER':
|
||||||
return '<hr>'
|
return '<hr>'
|
||||||
elif ntype == 'INFOGRAPHIC':
|
elif ntype == 'INFOGRAPHIC':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user