This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from anki.hooks import addHook | |
from aqt.editor import Editor | |
def add_square_brackets(editor): | |
u"""Call js function to wrap text in the span.""" | |
editor.web.eval(ur"""wrap('\[\[', '\]\]');""") | |