Skip to content

support rST >>> (doctest) block highlighting #347

@flying-sheep

Description

@flying-sheep

In reStructuredText documents, using plain >>> syntax creates a “doctest block” with the syntax both GitHub and Pygments call pycon, yet they’re rendered as a plain <pre> block.

This should be fixed. Maybe we should even do what Sphinx does and exclude the >>> and ... line prefixes from selection so people can select/copy only the code!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions