From 1a9c49bf913f93acc39d9f1c02561b23970ab77b Mon Sep 17 00:00:00 2001 From: Aaron Muir Hamilton Date: Thu, 13 Dec 2018 04:08:33 +0000 Subject: [PATCH] Pass underscore through in anchor string. --- ox-gfm.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-gfm.el b/ox-gfm.el index 440ab65..a24d78a 100644 --- a/ox-gfm.el +++ b/ox-gfm.el @@ -274,7 +274,7 @@ contextual information." ;;;; Table of contents (defun org-gfm-anchor-from-title (title) - (replace-regexp-in-string "[^a-z\-]" "" (downcase (replace-regexp-in-string "[ ]" "-" title)))) + (replace-regexp-in-string "[^a-z\-_]" "" (downcase (replace-regexp-in-string "[ ]" "-" title)))) (defun org-gfm-anchor-from-headline (headline) (org-gfm-anchor-from-title (org-export-data (org-export-get-alt-title headline info) info)))