| ValidExportStates |
= |
[:exclude, :headline_only, :all] |
|
Valid states for partial export.
| exclude: | The entire subtree from this heading should be excluded.
|
| headline_only: | The headline should be exported, but not the body.
|
| all: | Everything should be exported, headline/body/children.
|
|
| LineRegexp |
= |
/^\*+\s+/ |
|
This is the regex that matches a line
|
| TagsRegexp |
= |
/\s*:[\w:@]*:\s*$/ |
|
This matches the tags on a headline
|
| Keywords |
= |
%w[TODO DONE] |
|
Special keywords allowed at the start of a line.
|
| KeywordsRegexp |
= |
Regexp.new("^(#{Keywords.join('|')})\$") |
| CommentHeadlineRegexp |
= |
/^COMMENT\s+/ |
|
This matches a headline marked as COMMENT
|