-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Rewrite the "Docutils markup API" page #12505
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
Rewrite the "Docutils markup API" page #12505
Conversation
doc/extdev/markupapi.rst
Outdated
Docutils represents document source lines in a class | ||
``docutils.statemachine.ViewList``. This is a list with extended functionality | ||
-- for one, slicing creates views of the original list, and also the list | ||
contains information about the source line numbers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's a fun fact for you; the docutils parser (incorrectly IMO) uses the offset into the StringList
, rather than the actual source line you assign to the line, to report most warnings, making the source information kind of meaningless 😒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks
See #12492.
A