How to use Markdown in Sphinx#

Configure Sphinx to handle Markdown.

Additional installation#

  poetry add myst-parser

conf.py#

  extensions = ['myst_parser']
  source_suffix = {
    '.rst': 'restructuredtext',
    '.txt': 'markdown',
    '.md': 'markdown',
  }

Confirmation#

This page is written in Markdown. It seems to be displayed correctly, so it’s OK.