Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for embedded headings and changes to media postprocessor #44

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

tnewing
Copy link

@tnewing tnewing commented Aug 10, 2023

Added a new preprocessor, "EmbedPreprocessor", which replaces heading internal embeds with the corresponding markdown. The effect is that a flashcard such as the following;

id: 1691710051726
---
What is Bayes theorem?
===
![Theorem](#Theorem)

will now generate a flashcard containing the embedded content as the back - essentially frees you from having to write notes into the code block directly, keeping the body of your notes as the ground truth. Currently only works for markdown links. Also the embedded content doesn't render in preview mode yet - might fix these later.

Also made a minor change to the media processor, which was having trouble identifying and locating internally embedded files.

@zinc0x1E
Copy link

Hi @tnewing , I love your ideas and it seems like this repo is not activly maintained. So would you mind me to merge your changes to my own fork? I really want to taste these features right now

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

Successfully merging this pull request may close these issues.

2 participants