diff options
author | Lee Hinman <lee@writequit.org> | 2016-09-26 10:07:07 -0600 |
---|---|---|
committer | Lee Hinman <lee@writequit.org> | 2016-09-26 10:07:07 -0600 |
commit | ca1b16eb91b25bb4f05e58e9b6692e8486c8c619 (patch) | |
tree | 1c6a68610ec6e5b85eb2e4a6312d9e86102d0383 | |
parent | 12277da990095faa423f0ec0cde258d90784a7cf (diff) | |
download | ox-tufte-ca1b16eb91b25bb4f05e58e9b6692e8486c8c619.tar.gz ox-tufte-ca1b16eb91b25bb4f05e58e9b6692e8486c8c619.zip |
Export code with <code> blocks
This addresses a recent change to tufte-css where code was changed to be
in `<code>` blocks instead of a `pre` with `code` class.
Hopefully this is compatible with both versions of tufte-css
-rw-r--r-- | ox-tufte.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ox-tufte.el b/ox-tufte.el index 5aca601..bcd197a 100644 --- a/ox-tufte.el +++ b/ox-tufte.el @@ -148,7 +148,7 @@ link. INFO is a plist holding contextual information." (defun org-tufte-src-block (src-block contents info) "Transcode SRC-BLOCK element into Tufte HTML format. CONTENTS is nil. INFO is a plist used as a communication channel." - (format "<pre class=\"code\">%s</pre>" + (format "<pre class=\"code\"><code>%s</code></pre>" (org-html-format-code src-block info))) |