diff options
author | leungbk <bkleung89@gmail.com> | 2019-01-27 22:22:44 +0100 |
---|---|---|
committer | Albert Krewinkel <albert+github@zeitkraut.de> | 2019-01-30 18:27:38 +0100 |
commit | ac83b9c37c39a49878e7d864fb276c0e4caed338 (patch) | |
tree | 781f4696af7815fb5c13c3c91bcccd846c6dc443 /test/org-select-tags.org | |
parent | dc431745730aaac244a2e59b25f5554a654abf4c (diff) | |
download | pandoc-ac83b9c37c39a49878e7d864fb276c0e4caed338.tar.gz |
Org reader: add support for #+SELECT_TAGS.
Diffstat (limited to 'test/org-select-tags.org')
-rw-r--r-- | test/org-select-tags.org | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/org-select-tags.org b/test/org-select-tags.org new file mode 100644 index 000000000..8f0ebfdbd --- /dev/null +++ b/test/org-select-tags.org @@ -0,0 +1,17 @@ +#+SELECT_TAGS: yes no +#+EXCLUDE_TAGS: no + +In a document containing one or more trees containing a tag +listed in SELECT_TAGS, only those trees and their ancestor nodes will appear; +this text and any other text preceding the first headline +won't appear for such documents. + +* Will appear because it is the ancestor of something tagged "yes" +** Will appear :yes: +*** Will appear since the entire subtree of something selected will appear +**** Will appear +*** Will not appear since this has tagged with something in EXCLUDE-TAGS :no: +** Will not appear since it's not an ancestor of listed in SELECT-TAGS +** Will appear because it is the ancestor of something listed in SELECT-TAGS +*** Will not appear because it has an EXCLUDE-TAG, but since "no" is also listed as a SELECT-TAG, it will force its parent to appear :no: +* Will not appear |