* Bold links not working
@ 2009-04-13 1:45 Daniel Clemente
2009-04-15 7:20 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Clemente @ 2009-04-13 1:45 UTC (permalink / raw)
To: mailing-list-org-mode
With org-mode 6.25trans from git from right now, I get this output:
<p>
A *<a href="#destination">bold link</a>*, a <strong>bold word</strong>.
</p>
From this input:
A *[[destination][bold link]]*, a *bold word*.
Both links are however correctly hightlighted with a bold face.
At the moment I don't know if this is a regression or did never work before.
I have seen that [[destination][*bold link*]] works, but writing *some words and a [[d][bold]] link* is an easier syntax than *some bold words* [[d][*and a bold link*]].
The problem seeems to be in org-html-expand. It is breaking the line in these parts:
- "A *"
- "[[destination][bold link]]"
- "*, a *bold word*."
…and calling org-html-do-expand on each. But the first part alone does not activate bold because it doesn't match org-emph-re.
What I don't know is how org-html-do-expand could receive the full unbroken string so that it can detect the first bold and yet can't be fooled by asterisks inside the link, as in *[[de][oops* broken]] (this matches org-emph-re).
-- Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bold links not working
2009-04-13 1:45 Bold links not working Daniel Clemente
@ 2009-04-15 7:20 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-04-15 7:20 UTC (permalink / raw)
To: Daniel Clemente; +Cc: mailing-list-org-mode
Difficult to fix, I am afraid.
- Carsten
On Apr 13, 2009, at 3:45 AM, Daniel Clemente wrote:
>
> With org-mode 6.25trans from git from right now, I get this output:
>
> <p>
> A *<a href="#destination">bold link</a>*, a <strong>bold word</
> strong>.
> </p>
>
>
> From this input:
>
> A *[[destination][bold link]]*, a *bold word*.
>
>
> Both links are however correctly hightlighted with a bold face.
>
> At the moment I don't know if this is a regression or did never
> work before.
> I have seen that [[destination][*bold link*]] works, but writing
> *some words and a [[d][bold]] link* is an easier syntax than *some
> bold words* [[d][*and a bold link*]].
>
>
> The problem seeems to be in org-html-expand. It is breaking the
> line in these parts:
> - "A *"
> - "[[destination][bold link]]"
> - "*, a *bold word*."
> …and calling org-html-do-expand on each. But the first part alone
> does not activate bold because it doesn't match org-emph-re.
>
> What I don't know is how org-html-do-expand could receive the full
> unbroken string so that it can detect the first bold and yet can't
> be fooled by asterisks inside the link, as in *[[de][oops* broken]]
> (this matches org-emph-re).
>
>
> -- Daniel
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-15 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-13 1:45 Bold links not working Daniel Clemente
2009-04-15 7:20 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).