Skip to content

Dedicated targets and source blocks #276

Description

@AndreasMatthias

Links with dedicated targets seem to have an issue with source blocks.

Here's an example. This is file file.org:

<<aaa>>
aaa

<<bbb>>
bbb

End of file

Now, I'd like to include paragraph <<aaa>> into my document:

#+transclude: [[./file.org::aaa]]

This works fine, it includes only one paragaph:

<<aaa>>
aaa

But if I want to put the paragraph inside a source block:

#+transclude: [[./file.org::aaa]]  :src sh

then all paragraphs up to the end of the file are included:

#+begin_src sh
<<aaa>>
aaa

<<bbb>>
bbb

End of file
#+end_src

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions