8000 Double underscores in .rst confuse parsing, new in 3.6 · Issue #10497 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Double underscores in .rst confuse parsing, new in 3.6 #10497
Closed
@nedbat

Description

@nedbat

Whittled down from a much larger file: changes.rst is:

*  Added parameters to coverage.__init__ for options that had been set
   on the coverage object itself.

3.5 handled this correctly. 3.6 and 3.6.1 do not:

% ./pandoc3.5 -frst -tmarkdown_strict --markdown-headings=atx --wrap=none changes.rst
-   Added parameters to coverage.\_\_init\_\_ for options that had been set on the coverage object itself.

% ./pandoc3.6 -frst -tmarkdown_strict --markdown-headings=atx --wrap=none changes.rst
Error at "changes.rst_chunk" (line 2, column 1):
unexpected 'o'
expecting block

% ./pandoc3.6.1 -frst -tmarkdown_strict --markdown-headings=atx --wrap=none changes.rst
Error at "changes.rst_chunk" (line 2, column 1):
unexpected 'o'
expecting block

Fiddling with the underscores changes the behavior:

*  Added parameters to coverage.init__ for options that had been set
   on the coverage object itself.

Produces:

Error at "changes.rst_chunk" (line 4, column 1):
unexpected end of input
expecting end of input

and

*  Added parameters to coverage.init for options that had been set
   on the coverage object itself.

converts correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0