mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
need to strip sounds when FrontSide rendering deferred
This commit is contained in:
parent
912a49a2e3
commit
a63eccb3dd
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ import anki
|
|||
from anki import hooks
|
||||
from anki.hooks import runFilter
|
||||
from anki.rsbackend import TemplateReplacementList
|
||||
from anki.sound import stripSounds
|
||||
|
||||
|
||||
def render_card(
|
||||
|
@ -70,7 +71,7 @@ def apply_custom_filters(
|
|||
else:
|
||||
# do we need to inject in FrontSide?
|
||||
if node.field_name == "FrontSide" and front_side is not None:
|
||||
node.current_text = front_side
|
||||
node.current_text = stripSounds(front_side)
|
||||
|
||||
field_text = node.current_text
|
||||
for filter_name in node.filters:
|
||||
|
|
Loading…
Reference in a new issue