This function inserts JavaScript code for anki texts.
Call this function in a code chunk somewhere in your R Markdown file.
Use anki() function with a inline r code, to make a hidden block.
anki_setup(
background = "yellow",
color = "blue",
border = "slateblue",
padding = 3,
margin = 3,
cursor = "pointer"
)character. CSS/JavaScript code for anki texts.
character. Background color of the blank box.
character. Font color of the answer of the blank box.
character. Border color of the blank box.
integer. Space between the answer text and the border.
integer. Left and right margin around the border.
character.