Skip to content

Commit

Permalink
Hide PROPERTIES drawers in space-doc-mode
Browse files Browse the repository at this point in the history
Hide properties in space-doc-mode to allow the use of `CUSTOM_ID` tags in
documentation for correct link exporting, as discussed in #8054, #8136
and #8138. Complementary the latter two PR:s.
  • Loading branch information
nikolaiam authored and syl20bnr committed Apr 2, 2017
1 parent 58a71f7 commit 3142b23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ This functions is aimed to be used with `spacemacs-space-doc-modificators'."
"\\([ \t]*\\#\\+TITLE\\:\[ \t]*\\)"
;; Hide CAPTION logo meta line.
"\\(\n.*\\#\\+CAPTION\\:.*\\)"
;; Hide PROPERTIES lines.
"\\(\n.*\\:PROPERTIES\\:.*\\)"
"\\(\n.*\\:CUSTOM_ID\\:.*\\)"
"\\(\n.*\\:END\\:.*\\)"
;; Hide TOC-ORG tag and spaces before it.
;; Use modified `toc-org-toc-org-regexp' because
;; the original one matches whole string.
Expand Down

0 comments on commit 3142b23

Please sign in to comment.