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

Support referencing any contents in the org fileYork #102

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

Conversation

YorkZ
Copy link

@YorkZ YorkZ commented Oct 23, 2022

Hi,

First of all, thank you very much for this package. I'm sending this PR in response to this suggestions. Please see the commit message for more details.

Thank you

YorkZ added 3 commits October 1, 2022 10:16
This is achieved by calling `org-export-to-buffer' to export a field (which is
an org subtree) instead of treating the field as a string and calling
`org-export-string-as' to export this string. The problem with the later (old)
approach is that the HTML export backend is only able to see the current
field (org subtree), and therefore the current field is not able to reference
any contents outside of the field.
@doolio
Copy link

doolio commented Oct 24, 2022

Thanks YorkZ. As per the other issue it would be great to submit this PR to orgtre's fork as well.

@orgtre
Copy link

orgtre commented Oct 31, 2022

Yes, thanks @YorkZ, but I'm not sure I understand what this does. It seems to be almost the same as this pull request, so would likely introduce some breakage in orgtre/anki-editor (see #81). Maybe that is not too difficult to address though?

What kind of references are you talking about? Does this change how the reference looks when exported to Anki? I sometimes use nobiot/org-transclusion for referencing content and that works fine already.

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.

3 participants