Skip to content

Orgmode reader/writer does not honour :noexport: tag #2628

Closed
mrvdb opened this Issue · 3 comments

2 participants

@mrvdb

Input .org file:

* Export this
* But not this                                              :noexport:

Output of pandoc test.org:

<h1 id="export-this">Export this</h1>
<h1 id="but-not-this">But not this<span class="tag" data-tag-name="noexport"></span></h1>

Expected output:

<h1 id="export-this">Export this</h1>

Using pandoc 1.16, OS : arch linux

@jgm
Owner
jgm commented

@tarleb
Of course, there's a question whether pandoc should honor this tag (pandoc /= org-mode export), but probably.

@mrvdb

@jgm The release notes at http://pandoc.org/releases.html (pandoc 1.14) seem to suggest that it already should be the case.

...Drop trees with a :noexport: tag (Albert Krewinkel). 
Trees having a :noexport: tag set are not 
exported. This mirrors org-mode....

Am I misinterpreting?

@tarleb tarleb added a commit to tarleb/pandoc that referenced this issue
@tarleb tarleb Fix function dropping subtrees tagged :noexport:
Continue scanning for comment subtrees beyond only the first block.

Note to self: when writing an recursive function, don't forget to, you
know, actually recurse.

Shout to @mrvdb for noticing this.

This fixes #2628.
b3b00da
@jgm jgm closed this in #2629
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@tarleb tarleb Fix function dropping subtrees tagged :noexport:
Continue scanning for comment subtrees beyond only the first block.

Note to self: when writing an recursive function, don't forget to, you
know, actually recurse.

Shout to @mrvdb for noticing this.

This fixes #2628.
7acb48a
@c-forster c-forster pushed a commit to c-forster/pandoc that referenced this issue
@tarleb tarleb Fix function dropping subtrees tagged :noexport:
Continue scanning for comment subtrees beyond only the first block.

Note to self: when writing an recursive function, don't forget to, you
know, actually recurse.

Shout to @mrvdb for noticing this.

This fixes #2628.
3b940a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.