mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-09 06:35:13 -05:00
Update econ recipes
This commit is contained in:
parent
bbd776c959
commit
c973a2afec
@ -61,15 +61,11 @@ def parse_txt(ty):
|
||||
'italic': lambda: [f'<i>{"".join(parse_txt(c))}</i>' for c in children],
|
||||
'linebreak': lambda: ['<br>'],
|
||||
'external_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'internal_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'ufinish': lambda: [text for c in children for text in parse_txt(c)],
|
||||
'subscript': lambda: [f'<sub>{"".join(parse_txt(c))}</sub>' for c in children],
|
||||
'superscript': lambda: [f'<sup>{"".join(parse_txt(c))}</sup>' for c in children],
|
||||
|
||||
@ -63,15 +63,11 @@ def parse_txt(ty):
|
||||
'italic': lambda: [f'<i>{"".join(parse_txt(c))}</i>' for c in children],
|
||||
'linebreak': lambda: ['<br>'],
|
||||
'external_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'internal_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'ufinish': lambda: [text for c in children for text in parse_txt(c)],
|
||||
'subscript': lambda: [f'<sub>{"".join(parse_txt(c))}</sub>' for c in children],
|
||||
'superscript': lambda: [f'<sup>{"".join(parse_txt(c))}</sup>' for c in children],
|
||||
|
||||
@ -61,15 +61,11 @@ def parse_txt(ty):
|
||||
'italic': lambda: [f'<i>{"".join(parse_txt(c))}</i>' for c in children],
|
||||
'linebreak': lambda: ['<br>'],
|
||||
'external_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'internal_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'ufinish': lambda: [text for c in children for text in parse_txt(c)],
|
||||
'subscript': lambda: [f'<sub>{"".join(parse_txt(c))}</sub>' for c in children],
|
||||
'superscript': lambda: [f'<sup>{"".join(parse_txt(c))}</sup>' for c in children],
|
||||
|
||||
@ -62,15 +62,11 @@ def parse_txt(ty):
|
||||
'italic': lambda: [f'<i>{"".join(parse_txt(c))}</i>' for c in children],
|
||||
'linebreak': lambda: ['<br>'],
|
||||
'external_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'internal_link': lambda: [
|
||||
f'<a href="{href}">{"".join(parse_txt(children[0]))}</a>'
|
||||
]
|
||||
if children
|
||||
else [],
|
||||
f'<a href="{href}">{"".join(parse_txt(c))}</a>' for c in children
|
||||
],
|
||||
'ufinish': lambda: [text for c in children for text in parse_txt(c)],
|
||||
'subscript': lambda: [f'<sub>{"".join(parse_txt(c))}</sub>' for c in children],
|
||||
'superscript': lambda: [f'<sup>{"".join(parse_txt(c))}</sup>' for c in children],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user