File: html-roles.txt

package info (click to toggle)
python-docutils 0.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,448 kB
  • sloc: python: 53,302; lisp: 14,475; xml: 1,807; javascript: 1,032; makefile: 102; sh: 96
file content (45 lines) | stat: -rw-r--r-- 1,419 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.. Standard definition file for additional roles matching HTML tags.

  :Copyright: © 2025 Günter Milde.
  :License: Released under the terms of the
    `2-Clause BSD license <http://www.spdx.org/licenses/BSD-2-Clause>`__

.. role:: b
.. role:: bdi
.. role:: del
.. role:: dfn
.. role:: i
.. role:: ins
.. role:: kbd(literal)
.. role:: mark
.. role:: q
.. role:: samp(literal)
.. role:: small
.. role:: u
.. role:: s
.. role:: var

.. raw:: latex

   % Definitions for semantic HTML inline markup and representation of edits
   % (standard definition file "html-roles.txt").
   % Add "soul" to the "stylesheet" setting for markup test that wraps
   % and "xcolor" for yellow highlighting with :mark:`me`.
   \providecommand{\DUroleb}{\textbf}
   \providecommand{\DUroledel}{\st}
   \providecommand{\DUroledfn}{\emph}
   \providecommand{\DUrolei}{\textit}
   \providecommand{\DUroleins}{\ul}
   \providecommand{\DUrolekbd}{\texttt}
   \providecommand{\DUrolemark}{\hl}
   \providecommand{\DUroleq}[1]{“#1”}
   \providecommand{\DUroles}{\st}
   \providecommand{\DUrolesmall}[1]{{\footnotesize #1}}
   \providecommand{\DUroleu}{\underline}
   \providecommand{\DUrolevar}{\textit}
   % fallback definitions
   \providecommand{\ul}{\underline}
   \providecommand{\hl}{\underline}  % highlight/mark
   \providecommand{\st}[1]{%           strikethrough
     \raisebox{1ex}{\underline{\smash{\raisebox{-1ex}{#1}}}}%
   }