fragment support for tables

This commit is contained in:
Gambhiro 2015-01-09 16:13:19 +00:00
parent 216ae62f8c
commit b4b5a9ccb3
1 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,7 @@
(keyword . org-reveal-keyword) (keyword . org-reveal-keyword)
(paragraph . org-reveal-paragraph) (paragraph . org-reveal-paragraph)
(quote-block . org-reveal-quote-block) (quote-block . org-reveal-quote-block)
(table . org-reveal-table)
(section . org-reveal-section) (section . org-reveal-section)
(src-block . org-reveal-src-block) (src-block . org-reveal-src-block)
(template . org-reveal-template)) (template . org-reveal-template))
@ -775,6 +776,14 @@ contextual information."
(frag-class (org-export-read-attribute :attr_reveal quote-block :frag)) (frag-class (org-export-read-attribute :attr_reveal quote-block :frag))
contents)) contents))
(defun org-reveal-table (table contents info)
"Transcode a TABLE element from Org to Reveal.
CONTENTS holds the contents of the table INFO is a plist holding
contextual information."
(format "<table %s>\n%s</table>"
(frag-class (org-export-read-attribute :attr_reveal table :frag))
contents))
(defun org-reveal-template (contents info) (defun org-reveal-template (contents info)
"Return complete document string after HTML conversion. "Return complete document string after HTML conversion.
contents is the transcoded contents string. contents is the transcoded contents string.