File: link_in_substitution.txt

package info (click to toggle)
python-docutils 0.14%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,976 kB
  • sloc: python: 44,718; lisp: 14,476; xml: 1,782; sh: 167; makefile: 150
file content (23 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Test the interaction of transforms.references.Substitutions and
transforms.references.ExternalLinks.

|rest| is cool!

.. |rest| replace:: reStructuredText_

.. _reStructuredText: http://docutils.sourceforge.net/rst.html

There is a preferred alternative:

|rst|_ is cool!

.. |rst| replace:: reStructuredText
.. _rst: http://docutils.sourceforge.net/rst.html

This only works for the case where the entire substitution is a
reference, not when the reference is embedded as part of the
substitution:

|urst| is uncool!

.. |urst| replace:: unstructured reStructuredText_