mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
remove underline hack, more robust bold hack for osx
This commit is contained in:
parent
2749e5af45
commit
5a71cd84a3
1 changed files with 2 additions and 5 deletions
|
|
@ -239,11 +239,8 @@ def restoreHeader(widget, key):
|
||||||
def mungeQA(deck, txt):
|
def mungeQA(deck, txt):
|
||||||
txt = renderLatex(deck, txt)
|
txt = renderLatex(deck, txt)
|
||||||
txt = stripSounds(txt)
|
txt = stripSounds(txt)
|
||||||
# webkit currently doesn't handle bold/underline properly
|
# osx webkit doesn't understand font weight 600
|
||||||
txt = txt.replace("font-weight: 600;",
|
txt = re.sub("font-weight:.+?;", "font-weight: bold", txt)
|
||||||
"font-weight: 900;")
|
|
||||||
txt = txt.replace("text-decoration: underline;",
|
|
||||||
"border-bottom: 1px solid #000;")
|
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def applyStyles(widget):
|
def applyStyles(widget):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue