Skip to content

[New Feature] Cloze by Replacing or Regex#43

Open
zinc0x1E wants to merge 1 commit intoJeppeKlitgaard:masterfrom
zinc0x1E:feat/pr/replace-cloze
Open

[New Feature] Cloze by Replacing or Regex#43
zinc0x1E wants to merge 1 commit intoJeppeKlitgaard:masterfrom
zinc0x1E:feat/pr/replace-cloze

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