Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
+++ | ||
title = "Under_scores_in_title" | ||
date = 2017-07-28 | ||
tags = [] | ||
draft = false | ||
+++ | ||
|
||
Ensure that the underscores in `title` string of front matter do not | ||
get escaped.. `foo_bar` must not become `foo\_bar`. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -698,6 +698,8 @@ INFO is a plist used as a communication channel." | |
(title (replace-regexp-in-string "\\\\?`" "" title)) | ||
(title (replace-regexp-in-string "\\`__?\\|\\`\\*\\*?\\|__?\\'\\|\\*\\*?\\'" "" title)) | ||
(title (replace-regexp-in-string " __?\\|__? \\| \\*\\*?\\|\\*\\*? " " " title)) | ||
;; Do not escape underscores in title | ||
(title (replace-regexp-in-string "\\\\_" "_" title)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kaushalmodi
Author
Owner
|
||
(menu-alist (org-hugo--parse-menu-prop-to-alist (plist-get info :hugo-menu))) | ||
(menu-alist-override (org-hugo--parse-menu-prop-to-alist (plist-get info :hugo-menu-override))) | ||
;; If menu-alist-override is non-nil, update menu-alist with values from that. | ||
|
I had looked at this piece of code before, and was wondering if we should not be calling
org-export-data
on the title, at all. Any sort of mark-up in the title would usually be something unexpected.