badlydrawnrob / anki

Learn to code with Anki — flashcards and themes for all learning levels. Master your programming language of choice!
MIT License
719 stars 61 forks source link

Card data: pandoc output isn't "clean" enough #115

Closed badlydrawnrob closed 7 months ago

badlydrawnrob commented 7 months ago

More clarity on card data. Some things should be compiled as raw text

Potential edits required:

More information

Our card fields are already wrapped in html code

Screenshot 2024-01-17 at 19 39 15

Our compiled code (with Pandoc) spits out this code

Screenshot 2024-01-17 at 19 39 37

Our data

Should probably look like ...

<!-- ★ Title -->
# Title text here (`raw text`)

<!-- ☆ Subtitle -->
## Subtitle text here (raw text)

<!-- ☆ Syntax (inline code) -->
Already wrapped in a `<p><code>` tag. A one liner: Some very short text for syntax.
-- ★ Sample (code block or image)
someCode num = num * num
# ★ Key point (code block or image)
some code here or an image
<!-- ★ Key point notes -->
<p>Some notes that can be in any format you need</p>

<!-- ✎ Other notes -->
<p>Some notes that can be in any format you need</p>
badlydrawnrob commented 7 months ago

Moving to Anki Child Theme