diff --git a/ox-hugo.el b/ox-hugo.el index 44ddf98..9cd2ecd 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -2052,8 +2052,7 @@ and rewrite link paths to make blogging more seamless." useful-parent info nil #'org-html--has-caption-p)) " " ;" " - ;; Escape the double-quotes, if any, - ;; present in the caption. + ;; Escape the double-quotes, if any. (replace-regexp-in-string "\"" "\\\\\"" caption)))) (extension (downcase (file-name-extension raw-path))) (inlined-svg (and (stringp extension) @@ -2077,13 +2076,11 @@ and rewrite link paths to make blogging more seamless." svg-contents))) (caption-html (if (not caption) "" - ;; (caption-str - ;; (org-html-convert-special-strings ;Interpret em-dash, en-dash, etc. - ;; (org-export-data-with-backend caption 'html info))) (format (concat "\n\n
\n" " %s\n" "
") - caption)))) + (org-html-convert-special-strings ;Interpret em-dash, en-dash, etc. + (org-export-data-with-backend caption 'html info)))))) ;; (message "[ox-hugo-link DBG] svg contents: %s" svg-contents) ;; (message "[ox-hugo-link DBG] svg contents sanitized: %s" svg-contents-sanitized) (concat svg-contents-sanitized caption-html)) diff --git a/test/site/content-org/all-posts.org b/test/site/content-org/all-posts.org index 2b071c5..ca3e5ae 100644 --- a/test/site/content-org/all-posts.org +++ b/test/site/content-org/all-posts.org @@ -364,7 +364,7 @@ start :[[https://ox-hugo.scripter.co/ ox-hugo homepage]]; stop #+end_src -#+caption: An SVG with hyperlinks generated using PlantUML +#+caption: An SVG with *hyperlinks* -- generated using PlantUML #+attr_html: :inlined t #+RESULTS: [[file:svg-with-hyperlinks.svg]] diff --git a/test/site/content/posts/inlined-svg.md b/test/site/content/posts/inlined-svg.md index 16b315f..dff068a 100644 --- a/test/site/content/posts/inlined-svg.md +++ b/test/site/content/posts/inlined-svg.md @@ -51,5 +51,5 @@ points="76.5,93.9688,80.5,103.9688,84.5,93.9688,80.5,97.9688" style="stroke: #A80036; stroke-width: 1.0;"/>
- Figure 1: An SVG with hyperlinks generated using PlantUML + Figure 1: An SVG with **hyperlinks** – generated using PlantUML