#6681: Problem with restructuredtext in markup module
--------------------------------+------------------------------------
     Reporter:  mtredinnick     |                    Owner:  nobody
         Type:  Bug             |                   Status:  new
    Component:  contrib.markup  |                  Version:  master
     Severity:  Normal          |               Resolution:
     Keywords:  markup bug      |             Triage Stage:  Accepted
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  1
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+------------------------------------
Changes (by mrmachine):

 * status:  closed => new
 * resolution:  invalid =>


Comment:

 This is not a problem with `django.contrib.markup`. This problem still
 exists for anyone who wants use `admindocs` and also implement their own
 `restructuredtext` filter (or use docutils to render rst for any other
 purpose).

 Django should not assign a *default* interpreted role that *only* works
 with `django.contrib.admindocs.util.parse_rst()`.

 The ideal fix would be for Django to not set a default to begin with, but
 I do not know of a way to set a default inside `parse_rst()` only. If
 Django *must* set a default, then the default should be as compatible with
 user and 3rd party code as the original default. A refined version of
 https://github.com/django/django/pull/368 should do the trick.

 FYI this code appears to have been here from the *very* beginning, when
 Django was a private framework where it likely didn't need to worry about
 people wanting to use docutils to render reStructuredText outside of
 Django's narrow focus.

 
https://github.com/django/django/commit/ed114e15106192b22ebb78ef5bf5bce72b419d13

-- 
Ticket URL: <https://code.djangoproject.com/ticket/6681#comment:26>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.05c0d64ed95f79baf96cac6c40c5c9e9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to