mirror of
				https://github.com/larstvei/ox-gfm.git
				synced 2025-11-04 07:30:11 +00:00 
			
		
		
		
	Pass underscore through in anchor string.
This commit is contained in:
		
							parent
							
								
									c0d1a8d40a
								
							
						
					
					
						commit
						1a9c49bf91
					
				@ -274,7 +274,7 @@ contextual information."
 | 
				
			|||||||
;;;; Table of contents
 | 
					;;;; Table of contents
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(defun org-gfm-anchor-from-title (title)
 | 
					(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)
 | 
					(defun org-gfm-anchor-from-headline (headline)
 | 
				
			||||||
  (org-gfm-anchor-from-title (org-export-data (org-export-get-alt-title headline info) info)))
 | 
					  (org-gfm-anchor-from-title (org-export-data (org-export-get-alt-title headline info) info)))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user