bold/italic inside a hyperlink

12 views
Skip to first unread message

rados

unread,
Dec 27, 2010, 11:49:10 AM12/27/10
to creoleparser
Hello guys,

I just started to use creoleparser and noticed that its behaviour
differs a little from the formal creole 1.0 description. One of this
cases is when there is a '//' and/or '**' in a hyperlink. For example:

"[[Weird Stuff|**Weird** //Stuff//]]"

is rendered to
"<p><a href="Weird_Stuff"><strong>Weird</strong> <em>Stuff</em></a></
p>"

instead to
"<a href="Weird_Stuff">**Weird** //Stuff//</a>"
(as it is shown here: http://www.wikicreole.org/wiki/Creole1.0#section-Creole1.0-LinksInternalExternalAndInterwiki.)

And since I need behaviour like in the second case, can I ask you to
some guidance how to achieve it?

It is possible that I am missing something.

Thanks a lot,
Rado

Radomir Dopieralski

unread,
Dec 27, 2010, 1:28:26 PM12/27/10
to creole...@googlegroups.com
This is indeed against the spec, but you should be able to work around
it with the escape character (if that is implemented consistently). I
didn't test it, but try something like "[[Weird Stuff|~**Weird**
~//Stuff//]]"

> --
> You received this message because you are subscribed to the Google Groups "creoleparser" group.
> To post to this group, send email to creole...@googlegroups.com.
> To unsubscribe from this group, send email to creoleparser...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/creoleparser?hl=en.
>
>

--
Radomir Dopieralski, http://sheep.art.pl

Stephen Day

unread,
Dec 27, 2010, 2:57:00 PM12/27/10
to creoleparser
This works also:

"[[Weird Stuff|{{{**Weird** //Stuff//}}}]]"

Strictly speaking, the spec says that support for markup in links is
optional, so the behavior of creoleparser is not against spec in this
regard.

Stephen

On Dec 27, 1:28 pm, Radomir Dopieralski <sh...@sheep.art.pl> wrote:
> This is indeed against the spec, but you should be able to work around
> it with the escape character (if that is implemented consistently). I
> didn't test it, but try something like  "[[Weird Stuff|~**Weird**
> ~//Stuff//]]"
>
>
>
> On Mon, Dec 27, 2010 at 5:49 PM, rados <rado....@gmail.com> wrote:
> > Hello guys,
>
> > I just started to use creoleparser and noticed that its behaviour
> > differs a little from the formal creole 1.0 description. One of this
> > cases is when there is a '//' and/or '**' in a hyperlink. For example:
>
> > "[[Weird Stuff|**Weird** //Stuff//]]"
>
> > is rendered to
> > "<p><a href="Weird_Stuff"><strong>Weird</strong> <em>Stuff</em></a></
> > p>"
>
> > instead to
> > "<a href="Weird_Stuff">**Weird** //Stuff//</a>"
> > (as it is shown here:http://www.wikicreole.org/wiki/Creole1.0#section-Creole1.0-LinksInter....)
Reply all
Reply to author
Forward
0 new messages