-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Comments
+++ Albert Krewinkel [Mar 16 17 11:01 ]:
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? ***@***.*** ***@***.***
Yes, we could do that. What it would take would be adding a
new typeclass to Text.Pandoc.Parser, HasContainers (or
something -- that's not the most descriptive name).
Instances could then be defined for ParserState and for
org's ParserState, and we could generalize the function
using the typeclass. If you'd like to do this, go ahead.
It's precisely analogous to what we've done with HasMacros,
etc.
Of course, it's possible that when you look into the details
of org includes, you'll decide that you need your own
function. In the RST reader we couldn't reuse
insertIncludedFile, because RST's include mechanisms
include options for a line number range and other things.
So we have a bit of code duplication there.
|
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
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. |
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
When converting from
org-mode
included files (as specified by#+INCLUDE:
directives) are just ignored.For instance the following
main.org
file :with
sub1.org
listed as :and
sub2.org
listed asshould be translated by
pandoc -t org -f markdown -o main.md main.org
tobut is translated instead to a file containing just a newline character.
The text was updated successfully, but these errors were encountered: