Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Emacs, How to export Links to a clickable link, when htmlize emacs buffer?

BACKGROUND

  1. I using great htmlize.el to export my org-mode buffer contents with font hi-lock.
  2. Emacs org-mode has a Link format.

PROBLEM

For Example, here is a org-mode file with contents:

[[http://hunmr.blogspot.com][blog]]

When I Using Htmlize.el to htmlize buffer to HTML contents, The link was missing. produces HTML like:

<span style="hyperlinkFOOBAR">blog</span>

EXPECTED

I expected it produces clickable link like:

<a style="hyperlinkFOOBAR" href="http://hunmr.blogspot.com">blog</a>

QUESTION

EDIT1 The org-export-as-html can export link, but can not create CSS for the Hi-locks.

  • Do you know other ways to to export org-mode links to HTML?
  • To read the real link in org-mode buffer using elisp, how to do that? read text property?

THANKS IN ADVANCE, YOUR HELP WILL BE HIGHLY APPRECIATED.

like image 557
whunmr Avatar asked Nov 04 '22 18:11

whunmr


1 Answers

org-export-as-html should DTRT

like image 57
Andreas Röhler Avatar answered Nov 15 '22 04:11

Andreas Röhler