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

OPTIONS only read from buffer, not SETUPFILE include #31

Open
maplemuse opened this issue Nov 10, 2023 · 3 comments
Open

OPTIONS only read from buffer, not SETUPFILE include #31

maplemuse opened this issue Nov 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@maplemuse
Copy link

I have a simple org file that has a SETUPFILE option to point to a common include file I use for multiple org documents.
When I use other org exports, these fields are read properly. However, ox-pandoc does not seem to read the #+OPTIONS: ^:nil line unless it is in the org file itself.
I've included a simple example. When you attempt to export via ox-pandoc, the line is subscripted.

headers.tar.gz

@yantar92
Copy link
Member

yantar92 commented Nov 13, 2023 via email

@yantar92 yantar92 added the bug Something isn't working label Nov 13, 2023
@a-fent
Copy link
Collaborator

a-fent commented Nov 13, 2023

Thank you for the report and test-case, and thanks Ihor for the feedback on this and other issues; it's much appreciated. This also reminds me I should use SETUPFILE precisely because Org's default setting for ^ (subscripts/superscripts) bites me in most projects.

As Ihor suggests, there are two possible solutions here:

  1. make ox-pandoc inline the options from the SETUPFILE so pandoc reads them normally
  2. see if pandoc has a suitable construct and submit a change request to pandoc so that SETUPFILE is interpreted properly.

I have a couple of issues on the list that need better handling of keywords so I will try and see if (1) could work.

@yantar92
Copy link
Member

yantar92 commented Nov 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants