substitute '@@' code block delimiter with triple backtick, more con… by nastasi-oq · Pull Request #5513 · encode/django-rest-framework (original) (raw)
Hello! I had missed that one could use markdown in view docstrings to get nice code blocks, since it’s more common to have reST in the Python world, so first let me say thanks!
This PR seems nice, but I can’t make it work locally. After installing markdown and pygments I tried json and javascript as lexer name, with and without leading space, with and without a blank line following. (I know reST and Sphinx very well but always forget details of Github Markdown.)
Could the docs give a simple example?