Skip to content

Support for pycon (python interactive snippets) #187

Description

@mattharrison

Lots of Python tooling uses doctests and interactive snippets to show code.

i.e:

>>> def add(x, y):
...    return x + y
>>> add(2, 3)
5

The benefit of this is multiple:

  • you can test the docs
  • you can see both the input and output
  • it is a standard that jupyter supports as well

Consider this my vote to add syntax highlighting for pycon like pygments does.

BTW, thanks for Pandoc. 🙏 It is a lifesaver. I've migrated most of my custom rst tooling to it. (Still can't use rst to create LibreOffice slides because none of the existing tooling has the features I need. But I digress). Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions