It works!
I've added
span.underlined {
text-decoration: underline;
}
to default.css
and
.. role:: underlined
:underlined:`test underlined`
to the test.rst and it is underlined!
Thank You!
On Monday, August 27, 2012 5:34:51 PM UTC+4, Guenter Milde wrote:
>
> 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 view this discussion on the web visit
https://groups.google.com/d/msg/sphinx-dev/-/DfXhmGx8lVYJ.
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.