sphinx-codefence

Sphinx extension to monkeypatch docutils with a codefence parser


Keywords
sphinx
License
GPL-3.0
Install
pip install sphinx-codefence==0.1.0

Documentation

Sphinx Code Fence Extension

This is a single-module sphinx extension that monkey-patches docutils adding the ability to parse code fences. For example, the following code fence is rendered as a block of python code:

~~~py
def hello_codefence():
  print("I am in a codefence!")
~~~