ObsidianToAnki / Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki
GNU General Public License v3.0
1.51k stars 132 forks source link

Need a way to carry across all text (including markdown symbols and correct handling of newlines/tabs) with no additional styling. #388

Open NiamhFerns opened 1 year ago

NiamhFerns commented 1 year ago

I style my cards with the

START
Card Type
Front: ...
Back: ...
END

style formatting but I'm running into an issue where it's not copying things over to anki as I'd wish. I'm using a markdown plugin in anki so I don't need any formatting from obsidian at all. Literally just the plain text as it appears and that's it.

Examples: This is what I have in Obsidian: Screenshot_20221115_162655

This is what I want in Anki: Screenshot_20221115_162510

This is what I actually end up getting after syncing: Screenshot_20221115_163838 (It's not immediately obvious but the code block that's getting moved over from obsidian is getting moved over as one big line and obviously the actual markdown symbols are being removed.)

I can of course Go into anki afterwards and clean up all the cards but that kind of defeats the whole purpose of writing them in obsidian and then syncing them over.

ShootingKing-AM commented 8 months ago

Seems like related to https://github.com/Pseudonium/Obsidian_to_Anki/issues/462