[Doc-SIG] Emphasized URLs, how?

David Goodger goodger at python.org
Mon Jul 28 12:12:23 EDT 2003


Dinu Gherman wrote:
> I'm failing to get emphasized, clickable URL as I would expect them.

Nested inline markup is not currently supported.  We've discussed it 
recently, and it's on the to-do/maybe list.  It simply awaits
resolution of a few issues and implementation.  Collected notes:
<http://docutils.sf.net/spec/rst/alternatives.html#nested-inline-markup>

> Is there any trick to do it?

Yes, but it's very roundabout:

     Here's a |target|_ in a paragraph.

     .. |target| replace:: *target*
     .. _target: http://example.com

Replace "target" with a URL if you like.

If you want all standalone URLs in your document to be emphasized,
just change the stylesheet.

-- 
David Goodger    http://starship.python.net/~goodger
For hire: http://starship.python.net/~goodger/cv
Docutils: http://docutils.sourceforge.net/
(includes reStructuredText: http://docutils.sf.net/rst.html)




More information about the Doc-SIG mailing list