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

org-mode INCLUDE ignored #3510

Closed
b3 opened this issue Mar 16, 2017 · 4 comments
Closed

org-mode INCLUDE ignored #3510

b3 opened this issue Mar 16, 2017 · 4 comments

Comments

@b3
Copy link

b3 commented Mar 16, 2017

When converting from org-mode included files (as specified by #+INCLUDE: directives) are just ignored.

For instance the following main.org file :

#+include: "sub1.org"
#+include: "sub2.org"

with sub1.org listed as :

text from sub1

and sub2.org listed as

text from sub2

should be translated by pandoc -t org -f markdown -o main.md main.org to

text from sub1
text from sub2

but is translated instead to a file containing just a newline character.

@tarleb
Copy link
Collaborator

tarleb commented Mar 16, 2017

This should probably be implemented analogous to the file include mechanism of the LaTeX writer. I haven't used the new PandocMonad yet; would it make sense to generalize the existing insertIncludedFile such that it becomes usable with the Org parser state? @jgm @jkr

@jgm
Copy link
Owner

jgm commented Mar 16, 2017 via email

@tarleb tarleb self-assigned this May 14, 2017
tarleb added a commit to tarleb/pandoc that referenced this issue May 16, 2017
tarleb added a commit to tarleb/pandoc that referenced this issue May 16, 2017
Support for the `#+INCLUDE:` file inclusion mechanism was added.
Recognized include types are *example*, *export*, *src*, and normal org
file inclusion.  Advanced features like line numbers and level selection
are not implemented yet.

Closes: jgm#3510
tarleb added a commit to tarleb/pandoc that referenced this issue May 16, 2017
Support for the `#+INCLUDE:` file inclusion mechanism was added.
Recognized include types are *example*, *export*, *src*, and normal org
file inclusion.  Advanced features like line numbers and level selection
are not implemented yet.

Closes: jgm#3510
tarleb added a commit to tarleb/pandoc that referenced this issue May 16, 2017
Support for the `#+INCLUDE:` file inclusion mechanism was added.
Recognized include types are *example*, *export*, *src*, and normal org
file inclusion.  Advanced features like line numbers and level selection
are not implemented yet.

Closes: jgm#3510
@tarleb tarleb closed this as completed in af4bf91 May 16, 2017
@tarleb tarleb modified the milestone: pandoc 2.0 May 17, 2017
@phmarek
Copy link

phmarek commented Oct 20, 2017

Would you please include that in the next release? The last one is from February, and I'm not sure about the release plans for 2.0...

This feature would help tremendously in creating and updating nearly-identical files.

@tarleb
Copy link
Collaborator

tarleb commented Oct 20, 2017

The new version (pandoc 2.0) is probably going to be released sometime next month. You could try the latest inofficial nightly build if you don't want to wait.

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

No branches or pull requests

4 participants