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
:name: does not creating a proper label inside figure or code-block #1742
Comments
Thanks! I'll take a look. |
…e-block` and `literalinclude` dirctives.
…e-block` and `literalinclude` dirctives.
…e-block` and `literalinclude` dirctives.
…e-block` and `literalinclude` dirctives.
Now,
It's a specification of docutils. We'll keep compatibility. |
Thanks. About the '':name:'' in ''figure'', where is it specified in docutils? Maybe I can report it for them to change it... |
@Jellby Ah, "implementation" is better than "specification". I can't find any documentation for the behavior. |
Sample document:
The
:name:
option works fine in thetable
. In thecode-block
it's not accepted, and in thefigure
it has two problems:It does not generate a sphinx label, so
:ref:
my_figure`` does not work.The generated HTML assigns the
id
to the<img>
rather than to the<div>
:The text was updated successfully, but these errors were encountered: