On 2012-08-27, Boris Kheyfets wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> Hello Gunter

> I tried:

> .. _doc:

> .. role:: underlined(raw)
>    :format: html
>    :style: text-decoration: underline;

This creates a role based on the raw role, i.e. it expects the content to be
raw html.

Instead, write

.. role:: underlined

and a CSS rule to style ``span.underlined`` in a custom style sheet.


Suggestions/patches improving
>> http://docutils.sourceforge.net/docs/ref/rst/directives.html#custom-interpreted-text-roles
>>  
to make this more clear are welcome.

Günter

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to