emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] export of emphasized link


From: Michael Brand
Subject: Re: [Orgmode] export of emphasized link
Date: Tue, 01 Jun 2010 19:03:19 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 10-06-01 09:44 , Carsten Dominik wrote:
After removing org-bracket-link-regexp from org-html-expand

What do you mean by this sentence? What exactly did you do?

To understand the implementation I tried the following temporary
change (the line prefix `:' will bypass the nice patch extract
http://patchwork.newartisans.com/project/org-mode/list
for this time I hope):
------------------------------------------------------------
:--- a/lisp/org-html.el
:+++ b/lisp/org-html.el
:@@ -2025,8 +2025,7 @@ that uses these same face definitions."
: (defun org-html-expand (string)
:   "Prepare STRING for HTML export.  Applies all active conversions.
: If there are links in the string, don't modify these."
:-  (let* ((re (concat org-bracket-link-regexp "\\|"
:-                    (org-re "[ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$")))
:+  (let* ((re (org-re "[ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$"))
:         m s l res)
:     (if (string-match "^[ \t]*\\+-[-+]*\\+[ \t]*$" string)
:        string
------------------------------------------------------------

With this trial the export to HTML of emphasized links is supported.
But this should not happen as I understand the doc string of
org-html-expand and org-docbook-expand:
"If there are links in the string, don't modify these."
Why should emphasized links not be supported for the export to HTML
and DocBook (and maybe more export formats?) while the org-mode
buffer display (and maybe some export formats?) supports them?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]