From ac92dad97afb28cfaad8f5ada55932835dc1fe0f Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Sun, 7 Jan 2018 18:41:08 -0500 Subject: [PATCH] Export table caption using HTML backend .. because that caption is embedded in HTML div tags. --- ox-blackfriday.el | 2 +- test/site/content/posts/table-caption.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ox-blackfriday.el b/ox-blackfriday.el index 5f6878d..76fa309 100644 --- a/ox-blackfriday.el +++ b/ox-blackfriday.el @@ -681,7 +681,7 @@ contextual information." (let* ((table-num (org-export-get-ordinal table info nil #'org-html--has-caption-p)) - (caption-str (org-export-data caption info))) + (caption-str (org-export-data-with-backend caption 'html info))) (format (concat "
\n" " Table %d:\n" " %s\n" diff --git a/test/site/content/posts/table-caption.md b/test/site/content/posts/table-caption.md index 7c49ed1..1d9317b 100644 --- a/test/site/content/posts/table-caption.md +++ b/test/site/content/posts/table-caption.md @@ -20,7 +20,7 @@ Some text.
Table 2: - _Another_ **awesome** table + Another awesome table
| h1 | h2 | h3 |