Skip to content

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

Open
tnewing wants to merge 12 commits into
JeppeKlitgaard:masterfrom
tnewing:master
Open

Added support for embedded headings and changes to media postprocessor#44
tnewing wants to merge 12 commits into
JeppeKlitgaard:masterfrom
tnewing:master

Conversation

@tnewing

@tnewing tnewing commented Aug 10, 2023

Copy link
Copy Markdown

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
Copy Markdown

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