-
-
Notifications
You must be signed in to change notification settings - Fork 7k
add markdown preprocessor to highlight code-blocks #5377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@nastasi-oq There's two things going on here. First: the
Second: Adding highlighting etc. Can we address those separately? (A test and fix for 1, followed by a proposal for 2.) Thanks! |
First: #5378 |
@nastasi-oq: I think this'll be a nice addition. A basic test case will be needed. Look in django-rest-framework/rest_framework/compat.py Lines 221 to 277 in d54df8c
Here you'll need to adjust the ordering slightly: the django-rest-framework/rest_framework/templatetags/rest_framework.py Lines 69 to 73 in d54df8c
Let me know if you need input! |
@nastasi-oq I'm going to close this as-is. I am very happy to take a PR adding this, in line with the notes above. I don't though want to track it as an open issue. Thanks for the input: Hope to see more. 🙂 |
This PR add the possiblity to define code-blocks inside class docstrings to document API and
the possibility to highlight them using
pygments
package.This is not final version, it is just the first iteration to be sure to avoid waste of time.
What is currently missing are:
markdown
packagesCloses #5374.