I’m trying to create a pipeline that allows me to leverage pandoc to create stylised programming cards. The way it works is that you give pandoc a markdown file with
```some language
```
and it returns a HTML representation back which will allow Anki style plugins to create more aesthetically pleasing programming cards.
I imagine this pipeline to look something like this.
- I create card text
What does this function do?
```
function testFnc() {//… return something}
```
2. I hit convert and it exports the text out to a script that processes it and replaces the portions of backtick-language with pandoc generated HTML and then returns the output back to card.
These are the things I think I’m looking for info wise.
- A high level overview of the process to export text from Anki to a shell which can then process the text using pandoc, before Anki imports the response.
- Some information regarding important locations and files in the Anki ecosystem.
- Any further reading you can recommend to solve this particular task.
I understand that Anki is written in Python, which I have some experience in so I should be able to rustle up something.
I’m reading through an article called how to include external files in your template js css guide
as well as a julien sobczak article which is probably quite out of date now, but I wanted to post this in case, there is a gap in documented knowledge, that you think I should be aware of.