| 1 | --- |
| 2 | prelude: | |
| 3 | This paragraph will |
| 4 | retain its newlines |
| 5 | when the value is passed to the |
| 6 | reStructuredText parser, which |
| 7 | will then merge them into |
| 8 | a single paragraph without |
| 9 | breaks. |
| 10 | |
| 11 | | These |
| 12 | | lines |
| 13 | | are prefixed |
| 14 | | with | so the reStructuredText |
| 15 | | parser will retain |
| 16 | | the line breaks. |
| 17 | features: |
| 18 | This note is a simple string, and does not retain its |
| 19 | formatting when it is rendered in HTML. rst markup here |
| 20 | may break the YAML parser, since the string is not escaped. |
| 21 | fixes: |
| 22 | - Use YAML lists to add multiple items to the same section. |
| 23 | - Another fix could be listed here. |
| 24 | fixes_command_line: |
| 25 | - | |
| 26 | This is a subsection. It requires setting `sections` in |
| 27 | config with an entry underneath `['fixes', 'Bug Fixes']` like |
| 28 | `['fixes_command_line', 'Command Line', 2]`. The `2` at the end |
| 29 | indicates that the entry is a subsection header. |
| 30 | other: |
| 31 | - | |
| 32 | This bullet item includes a paragraph and a nested list, |
| 33 | which works because the content of the YAML list item |
| 34 | is an escaped string block with reStructuredText formatting. |
| 35 | |
| 36 | * list item 1 |
| 37 | * list item 2 |
| 38 | |
| 39 | .. code-block:: text |
| 40 | |
| 41 | This example is also rendered |
| 42 | correctly on multiple lines |
| 43 | as a pre-formatted block. |