-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 FIX:
parse_directive_text
when body followed by options (#580)
- Loading branch information
1 parent
cc44a35
commit c17d855
Showing
7 changed files
with
168 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. note:: hallo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
note: content in first line only | ||
. | ||
```{note} a | ||
``` | ||
. | ||
arguments: [] | ||
body: | ||
- a | ||
content_offset: 0 | ||
options: {} | ||
. | ||
|
||
note: content in body only | ||
. | ||
```{note} | ||
a | ||
``` | ||
. | ||
arguments: [] | ||
body: | ||
- a | ||
content_offset: 0 | ||
options: {} | ||
. | ||
|
||
note: content after option | ||
. | ||
```{note} | ||
:class: name | ||
a | ||
``` | ||
. | ||
arguments: [] | ||
body: | ||
- a | ||
content_offset: 1 | ||
options: | ||
class: | ||
- name | ||
. | ||
|
||
note: content after option with new line | ||
. | ||
```{note} | ||
:class: name | ||
|
||
a | ||
``` | ||
. | ||
arguments: [] | ||
body: | ||
- a | ||
content_offset: 2 | ||
options: | ||
class: | ||
- name | ||
. | ||
|
||
note: content after yaml option | ||
. | ||
```{note} | ||
--- | ||
class: name | ||
--- | ||
a | ||
``` | ||
. | ||
arguments: [] | ||
body: | ||
- a | ||
content_offset: 3 | ||
options: | ||
class: | ||
- name | ||
. | ||
|
||
note: content in first line and body | ||
. | ||
```{note} first line | ||
:class: tip | ||
|
||
body line | ||
``` | ||
. | ||
arguments: [] | ||
body: | ||
- first line | ||
- '' | ||
- body line | ||
content_offset: 1 | ||
options: | ||
class: | ||
- tip | ||
. | ||
|
||
admonition: no options, no new line | ||
. | ||
```{admonition} first line | ||
body line | ||
``` | ||
. | ||
arguments: | ||
- first line | ||
body: | ||
- body line | ||
content_offset: 0 | ||
options: {} | ||
. | ||
|
||
admonition: no options, new line | ||
. | ||
```{admonition} first line | ||
|
||
body line | ||
``` | ||
. | ||
arguments: | ||
- first line | ||
body: | ||
- body line | ||
content_offset: 1 | ||
options: {} | ||
. | ||
|
||
admonition: with options | ||
. | ||
```{admonition} first line | ||
:class: tip | ||
|
||
body line | ||
``` | ||
. | ||
arguments: | ||
- first line | ||
body: | ||
- body line | ||
content_offset: 2 | ||
options: | ||
class: | ||
- tip | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
tests/test_renderers/test_parse_directives/test_parsing_Note___class__name_n_na_.yml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
tests/test_renderers/test_parse_directives/test_parsing_Note__a_.yml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
tests/test_renderers/test_parse_directives/test_parsing_Note_a__.yml
This file was deleted.
Oops, something went wrong.