Skip to content
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

some domain directives generate wrong target ID #6903

Closed
tk0miya opened this issue Dec 8, 2019 · 0 comments
Closed

some domain directives generate wrong target ID #6903

tk0miya opened this issue Dec 8, 2019 · 0 comments

Comments

@tk0miya
Copy link
Member

tk0miya commented Dec 8, 2019

Describe the bug
Some domain directives generate wrong target ID. For example, both py:module and js:module generate target IDs with wrong operation. So they might be conflicted.

To Reproduce

This input are converted to following:

blah blah blah

.. js:module:: foo

blah blah blah

.. py:module:: foo

blah blah blah
<p>blah blah blah</p>
<span class="target" id="module-foo"></span><p>blah blah blah</p>
<span class="target" id="module-foo"></span><p>blah blah blah</p>

Expected behavior
All domain directives generate valid target IDs and they are not conflicted.

Your project
N/A

Screenshots
N/A

Environment info

  • OS: Mac
  • Python version: 3.8.0
  • Sphinx version: 2.2.2
  • Sphinx extensions: N/A
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant