File: admonitions.text

package info (click to toggle)
python-markdown2 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,492 kB
  • sloc: python: 6,201; perl: 1,493; php: 865; makefile: 37
file content (38 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (2)
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
.. NOTE:: Admonitions
   They contain 3 main parts, the admonition type, title and body.  

   The admonition type is case insensitive, title is optional and the body
   should be able to contain pretty much anything. For example:

   - Lists
   - With multiple levels
     - Of indentation

   And code blocks:

       print('indented code blocks')

.. warning::
   The admonition's body must be indented by a tab or 3 or more spaces
   from where the admonition was declared
  Otherwise the text is no longer part of the admonition.

.. IMPORTANT::
   You can also use 3 or more empty lines after an admonition  
   to end it



    print('In case you wanted something like')
    print('an indented code block right after')

.. admonition:: Generic admonitions

   These should be given a title but this is not enforced

   .. note:: Nested admonitions
      Nested admonitions should also work

      - Even inside
        .. tip::
           of a list