Obsidian_to_Anki icon indicating copy to clipboard operation
Obsidian_to_Anki copied to clipboard

Custom Regex Request: Header title as front and back with table conversion and other multi-line fields

Open caasion opened this issue 2 years ago • 0 comments

This is the markdown format that a note would have before being converted:

image

TARGET DECK: French Vocabulary
FILE TAGS: IrVerb
START
Fr-conj
### faire - to do
|      |     |
| ---- | --- |
| Je   |  {fais}   |
| Tu   |     {fais}|
| Il   |     {fait}|
| Nous |     {faisons}|
| Vous |     {faites}|
| Ils  |     {font}|
**Notes:** This is an irregular verb

yes it is
**Picture:** picture
**Examples:** exomple
**Synonyms:** synonyms!!
END

(It would be great if I don't have to have the curly brackets in the table, but it is tolerable.)

How the flashcard's fields would look like:

image Currently, I am using https://regex101.com/r/HhUlKu/1 but obsidian to Anki just puts everything into 1 field. Furthermore, this regex doesn't ignore the table formatting and doesn't convert it into lines. (The bolding in this link is a little different, but this doesn't matter too much.) It would be great if help could be offered for this regex. Thanks!

caasion avatar Apr 11 '22 23:04 caasion