-
Notifications
You must be signed in to change notification settings - Fork 87
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
anki-editor-push-notes ignores source block headers on execution #28
Comments
This "unexpected behavior" involves the way anki-editor works, that when it is building the content of a field, it does the exporting on the region of subtree of that field entry, this way Org has no idea where that noweb block is defined, but when you evaluate the source block, Org will search backward the buffer for the definition of the noweb block. |
Thanks for clarification. Should I consider this as a "Won't Fix" tag? |
This also prevents globally set headers ( |
added defcustom anki-editor-allow-duplicate
I use Noweb reference syntax to embed some code in all my source blocks, which needs
:noweb yes
in the source blocks' headers.The code works perfectly fine when I execute the block myself, but
anki-editor-push-notes
executes the blocks without the header, which leads to wrong outputs. I tried:cache yes
to avoid the problem, butanki-editor-push-notes
seems to ignore that too.Here is a minimal example:
The result of manual execution is
Noweb enabled.
as expected, but the pushed card readsNoweb not enabled.
.I am using Emacs 26.1, with Org Mode 9.1.14, and the latest anki-editor on Melpa.
The text was updated successfully, but these errors were encountered: