emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/toc-org abbcb67166 011/128: allow _ as seprartor


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org abbcb67166 011/128: allow _ as seprartor
Date: Sun, 2 Jan 2022 09:59:05 -0500 (EST)

branch: elpa/toc-org
commit abbcb67166bb0cd0fcd420b006493486b979eb1a
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: Sergei Nosov <sergei.nosov@gmail.com>

    allow _ as seprartor
---
 README.org | 2 ++
 org-toc.el | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 0c0c99ecc2..5cb6bba1d9 100644
--- a/README.org
+++ b/README.org
@@ -59,6 +59,8 @@ tag formats:
   supported href style is 'org', which is the default org style (you
   can use C-c C-o to go to the headline at point).
 
+You can also use =_= as separator, instead of =@=.
+
 * Different href styles
 
 Currently, only 2 href styles are supported: =gh= and =org=. You can easily
diff --git a/org-toc.el b/org-toc.el
index 5fc266527b..4ae1e55107 100644
--- a/org-toc.el
+++ b/org-toc.el
@@ -48,7 +48,7 @@ files on GitHub)"
   :group 'org)
 
 ;; just in case, simple regexp "^*.*:toc:\\($\\|[^ ]*:$\\)"
-(defconst org-toc-org-toc-regexp 
"^*.*:toc\\(@[0-9]\\|\\(@[0-9]@[a-zA-Z]+\\)\\)?:\\($\\|[^ ]*:$\\)"
+(defconst org-toc-org-toc-regexp 
"^*.*:toc\\([@_][0-9]\\|\\([@_][0-9][@_][a-zA-Z]+\\)\\)?:\\($\\|[^ ]*:$\\)"
   "Regexp to find the heading with the :toc: tag")
 (defconst org-toc-special-chars-regexp "[][~`!@#$%^&*()+={}|\:;\"'<,>.?/]"
   "Regexp with the special characters (which are omitted in hrefs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]