From: Kelvin Hu <ini.kelvin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Fwd: Question: how to disable htmlize during exporting?
Date: Tue, 25 Mar 2014 20:29:55 +0800 [thread overview]
Message-ID: <CAO61DjysZv=WrUV_vO2Wd_o=moE93Rkma0ofTQeHr4hXzcRnag@mail.gmail.com> (raw)
In-Reply-To: <CAO61DjxKttv80o3pMN3Z2ZNORDRYw5j=E_eKrT0wiGypdWdSxg@mail.gmail.com>
[forwarding to mailing-list]
---------- Forwarded message ----------
From: Kelvin Hu <ini.kelvin@gmail.com>
Date: 2014-03-25 18:07 GMT+08:00
Subject: Re: Question: how to disable htmlize during exporting?
To: Bastien <bzg@gnu.org>
Hi Bastien,
2014-03-25 16:25 GMT+08:00 Bastien <bzg@gnu.org>:
> I'd try to set `org-html-htmlize-output-type' to nil but I didn't
> test. If it does not work, this is a bug.
Thanks for your reply, I have tried this approach, but it reports
"error: (void function nil)".
Per the definition in `ox-html.el', it must be either 'inline-css or 'css.
After some research, now I use the following workaround:
(flet ((org-html-fontify-code
(code lang) (when code (org-html-encode-plain-text code))))
;; code here
;; e.g. (insert (org-export-as 'html nil nil t nil))
)
Redefine the function `org-html-fontify-code' will help, but I think
this workaround is a little ugly. So, I hope this feature can be
disabled gracefully, like set `org-html-htmlize-output-type' to nil.
next prev parent reply other threads:[~2014-03-25 12:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 3:33 Question: how to disable htmlize during exporting? Kelvin Hu
2014-03-25 8:25 ` Bastien
[not found] ` <CAO61DjxKttv80o3pMN3Z2ZNORDRYw5j=E_eKrT0wiGypdWdSxg@mail.gmail.com>
2014-03-25 12:29 ` Kelvin Hu [this message]
2014-03-25 15:37 ` Fwd: " Rick Frankel
2014-03-25 15:41 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO61DjysZv=WrUV_vO2Wd_o=moE93Rkma0ofTQeHr4hXzcRnag@mail.gmail.com' \
--to=ini.kelvin@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.