branch: elpa/toc-org
commit e9cf57041abcfb18be037015c87f9708513c8b83
Author: Sergei Nosov <[email protected]>
Commit: Sergei Nosov <[email protected]>
fix heading regexp
'*' symbol is also used for making text *BOLD*
---
org-toc.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org-toc.el b/org-toc.el
index 20a95372e6..be25c20e27 100644
--- a/org-toc.el
+++ b/org-toc.el
@@ -37,7 +37,7 @@
;; headline with a :TOC: tag will be updated with the current table of
;; contents.
-;; For details, see https://github.com/snosov1/org-toc/README.org
+;; For details, see https://github.com/snosov1/org-toc
;;; Code:
@@ -72,7 +72,7 @@ i.e. simply flush everything that's not a heading."
(with-temp-buffer
(insert content)
(goto-char (point-min))
- (keep-lines "^\*")
+ (keep-lines "^\*+[ ]")
;; don't include the TOC itself
(goto-char (point-min))