need to strip sounds when FrontSide rendering deferred

This commit is contained in:
Damien Elmes 2020-01-16 19:49:43 +10:00
parent 912a49a2e3
commit a63eccb3dd

View File

@ -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: