-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RST writer: handle cases where indented context starts with block quote.
In these cases we emit an empty comment to fix the point from which indentation is measured; otherwise the block quote is not parsed as a block quote. This affects list items and admonitions. Cloess #10236.
- Loading branch information
Showing
2 changed files
with
62 additions
and
4 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,38 @@ | ||
``` | ||
% pandoc -t rst | ||
- > test | ||
> | ||
> para 2 | ||
^D | ||
- .. | ||
test | ||
para 2 | ||
``` | ||
|
||
``` | ||
% pandoc -t rst | ||
1. > test | ||
> | ||
> para 2 | ||
^D | ||
1. .. | ||
test | ||
para 2 | ||
``` | ||
|
||
``` | ||
% pandoc -t rst | ||
::: caution | ||
> test | ||
::: | ||
^D | ||
.. caution:: | ||
.. | ||
test | ||
``` |