Closed dbitouze closed 1 month ago
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
Sorry, the ⟨code⟩ snippet is rendered as <literal>⟨code⟩</literal>
, not as <literal>⟨code⟩</literal>
.
I tried running your exmple, as part of the test suite, and got:
<section id="heading">
<h1>
Heading<a class="headerlink" href="#heading" title="Link to this heading"
>¶</a
>
</h1>
<div class="sd-tab-set docutils">
<input
checked="checked"
id="sd-tab-item-0"
name="sd-tab-set-0"
type="radio"
/>
<label class="sd-tab-label" for="sd-tab-item-0">
foo
<code class="docutils literal notranslate"
><span class="pre">foo</span></code
></label
>
<div class="sd-tab-content docutils">
<p>
<code class="docutils literal notranslate"
><span class="pre">foo</span></code
>
</p>
</div>
</div>
<div class="sd-tab-set docutils">
<input
checked="checked"
id="sd-tab-item-1"
name="sd-tab-set-1"
type="radio"
/>
<label class="sd-tab-label" for="sd-tab-item-1">
<code class="docutils literal notranslate"
><span class="pre">foo</span></code
>
foo</label
>
<div class="sd-tab-content docutils">
<p>
<code class="docutils literal notranslate"
><span class="pre">foo</span></code
>
</p>
</div>
</div>
</section>
So perhaps this has now been fixed, but feel free to re-open if this still occurs on sphinx-design v0.6.0
So perhaps this has now been fixed, but feel free to re-open if this still occurs on sphinx-design v0.6.0
Indeed, looks fixed now, thanks!
Describe the bug
Context
I have a
.rst
file containing a tab set with a tab's item, the label of which is starting with a⟨code⟩
snippet.Expectation
I expected this
⟨code⟩
snippet to be rendered as<span class="pre">⟨code⟩</span>.
Bug
But instead this
⟨code⟩
snippet is rendered as<literal>⟨code⟩</literal>
.Reproduce the bug
Create a minimal
Sphinx-doc
documentation:conf.py
file:-- Project information -----------------------------------------------------
https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Test sphinx-design' copyright = '2024, Me' author = 'Me'
-- General configuration ---------------------------------------------------
https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ['sphinx_design']
templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
-- Options for HTML output -------------------------------------------------
https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'alabaster' html_static_path = ['_static']
make html
._build/html/test.html
generated file:List your environment