简体   繁体   中英

emacs org-mode: htmlize leaves keywords in exported html

I didn't manage to keep syntax highlightning of source blocks in org-mode html-export with Cc Ce hh, so I switched to htmlize as suggested in some other posts here. It does fine with manually doing Mx htmlize-buffer, except for the fact it leaves all org-mode keywords beginning with #+ in the exported html. I tried org-mode 7.x as well as 8.2.5 now in emacs 24.3.1. I already thought of writing a short python-script to fix this afterwards, but maybe someone knows a quicker solution?

TNX a lot for any suggestions

barrios

  1. Set up org mode from git.
    mkdir ~/git
    cd ~/git
    git clone git://orgmode.org/org-mode.git
    cd org-mode
    make up2

2. Optionally, edit ~/git/org-mode/local.mk . I've set

    lispdir= ~/Dropbox/source/site-lisp/org

3. Create ~/tinit.el with contents:

    (add-to-list 'load-path "~/Dropbox/source/site-lisp/org")
    (require 'org)

4. Test it with

    emacs -Q -l ~/tinit.el ~/foo.org

If everything works, merge ~/tinit.el into your config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM