File: admonitions_with_fenced_code_blocks.text

package info (click to toggle)
python-markdown2 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,492 kB
  • sloc: python: 6,201; perl: 1,493; php: 865; makefile: 37
file content (23 lines) | stat: -rw-r--r-- 470 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
.. note::
   Admonitions are able to contain fenced code blocks
   ```python
   print('like so')
   ```

.. warning::
   ```python
   print('Consecutive blocks should also be fine')
   ```
   ```python
   print('Even though fenced code blocks wrap themselves in newlines')
   ```
   .. hint:: It should also work nested
      ```python
      print('ok')
      ```

```python
# admonitions WITHIN fenced code blocks should NOT be rendered
.. attention:: title
   body
```