Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Use AnkiConnect to load cards inside Obsidian.md #364

Open
ankified opened this issue Dec 3, 2022 · 1 comment
Open

Use AnkiConnect to load cards inside Obsidian.md #364

ankified opened this issue Dec 3, 2022 · 1 comment

Comments

@ankified
Copy link

ankified commented Dec 3, 2022

I'm trying to figure out a way to load the contents of flashcards directly inside Obsidian.md. I'm currently thinking about using a plug-in called Templater that lets the users run Javascript code inside Obsidian alongside with AnkiConnect's capability of getting card information. The problem is that I just know a bit of Python and nothing about Javascript.
Could you help me with that?

Here's an exemple of a Python script adapted from AnkiConnects's documentation:
https://www.online-python.com/CftBr42xQF

@ankified
Copy link
Author

ankified commented Dec 3, 2022

Hi! I kept trying and learned how to make the sample Javascript code work for some requests inside Obsidian. However, when I set the "cardsInfo" parameter it returns [object Object],[object Object] instead of the actual information. The same happens when I use the "deckNamesAndIds" parameter. Is this a bug or I'm doing something wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant