Skip to content

Anchor not created for internal target inside list #1120

@flichtenheld

Description

@flichtenheld

I have problems with internal links. One issue that I think I have identified is that links into lists do not work as expected from https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#footnote-12

Test code

Testing Sphinx Confluence Builder
----------------------------------------

.. contents:: Table of Contents

Overview
--------

Some content with `internal link`_.
And a second link: `other values`_.

Other Section
-------------

Some paragraph.

.. _internal link:

Internal link goes here.

Description:

* **value** (string) — value

  .. _other values:

* **other values** (int) — code

  * **0** — foo
  * **1** — bar
  * **2** — baz

* **something else**

"internal link" works fine. But "other values" link does not work. Generated code (for "Other Section" only):

<p>Some paragraph.</p><p><ac:structured-macro ac:name="anchor">
<ac:parameter ac:name="">internal-link</ac:parameter>
</ac:structured-macro><ac:structured-macro ac:name="anchor">
<ac:parameter ac:name="">TestingSphinxConfluenceBuilder-internal-link</ac:parameter>
</ac:structured-macro>Internal link goes here.</p><p>Description:</p><ul>
<li style="margin-top: 10px;">
<p><strong>value</strong> (string) — value</p></li>
<li style="margin-top: 10px;">
<p><strong>other values</strong> (int) — code</p><ul style="margin-top: 10px;">
<li>
<p><strong>0</strong> — foo</p></li>
<li>
<p><strong>1</strong> — bar</p></li>
<li>
<p><strong>2</strong> — baz</p></li>
</ul>
</li>
<li style="margin-top: 10px;">
<p><strong>something else</strong></p></li>
</ul>

I'm using sphinxcontrib-confluencebuilder 2.13.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    available-next-releaseMerged into the main branch but waiting for PyPI releasebugSomething that needs to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions