Skip to content

Commit

Permalink
Export table caption using HTML backend
Browse files Browse the repository at this point in the history
.. because that caption is embedded in HTML div tags.
  • Loading branch information
kaushalmodi committed Jan 7, 2018
1 parent 3500304 commit ac92dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ox-blackfriday.el
Expand Up @@ -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 "<div class=\"table-caption\">\n"
" <span class=\"table-number\">Table %d:</span>\n"
" %s\n"
Expand Down
2 changes: 1 addition & 1 deletion test/site/content/posts/table-caption.md
Expand Up @@ -20,7 +20,7 @@ Some text.

<div class="table-caption">
<span class="table-number">Table 2:</span>
_Another_ **awesome** table
<i>Another</i> <b>awesome</b> table
</div>

| h1 | h2 | h3 |
Expand Down

0 comments on commit ac92dad

Please sign in to comment.