Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature] Cloze by Replacing or Regex #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zinc0x1E
Copy link

@zinc0x1E zinc0x1E commented Aug 9, 2023

Supporting replacement cloze or regex cloze

It's something metioned in #42. The idea is from Obsidian Anki Sync, but I really like the syntax to declare an Anki card of this plugin, so I decide to implement a similar thing here.

I'm not sure whether new PR will be reviewed and merged, but I do want this feature, and I'm adding more features I wanted to my fork. If new PR is still accetaple here, I will be more than happy to contribute here instead of maintaining my own fork.

example:

id: 1691599660053
tags:
  - equation
clozeReplacements:
  - /1(.)3/g, $1
  - /456/g
  - r"raw text mode"
  - shorthand
---

A function with period $L$ can be ==written== as a __Fourier Series__:  
123
456
123456 raw text mode 456123 foo bar
a shorthand for raw text mode

===
Extra field

above code block in obsidian would compile to this anki text

A function with period  Mathjax  can be {{c1::written}} as a Fourier Series:
{{c2::2}}
{{c3::456}}
{{c2::2}}{{c3::456}} {{c4::raw text mode}} {{c3::456}}{{c2::2}} foo bar
a {{c5::shorthand}} for {{c4::raw text mode}}

(cherry picked from commit 8ce47c3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant