Skip to content

Commit

Permalink
Minor comment movement
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed May 1, 2020
1 parent 5106b43 commit a6175c9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ox-hugo.el
Expand Up @@ -2800,20 +2800,22 @@ BODY is the result of the export.
INFO is a plist holding export options."
;; Copy the page resources to the bundle directory.
(org-hugo--maybe-copy-resources info)
;; (message "[ox-hugo body filter] ITEM %S" (org-entry-get (point) "ITEM"))
;; (message "[ox-hugo body filter] TAGS: %S" (org-entry-get (point) "TAGS"))
;; (message "[ox-hugo body filter] ALLTAGS: %S" (org-entry-get (point) "ALLTAGS"))

;; `org-md-plain-text' would have escaped all underscores in plain
;; text i.e. "_" would have been converted to "\_".
;; We need to undo that underscore escaping in Emoji codes for those
;; to work.
;; Example: Convert ":raised\_hands:" back to ":raised_hands:".
;; More Emoji codes: https://www.emoji.codes/
;; (Requires setting "enableEmoji = true" in config.toml.)
;; (message "[ox-hugo body filter] ITEM %S" (org-entry-get (point) "ITEM"))
;; (message "[ox-hugo body filter] TAGS: %S" (org-entry-get (point) "TAGS"))
;; (message "[ox-hugo body filter] ALLTAGS: %S" (org-entry-get (point) "ALLTAGS"))
(setq body (replace-regexp-in-string
"\\(:[a-z0-9]+\\)[\\]\\(_[a-z0-9]+:\\)"
"\\1\\2"
body))

(when (and (org-hugo--plist-get-true-p info :hugo-delete-trailing-ws)
(not (org-hugo--plist-get-true-p info :preserve-breaks)))
(setq body (with-temp-buffer
Expand Down

0 comments on commit a6175c9

Please sign in to comment.