Skip to content

Multi reference same file#276

Open
alamirault wants to merge 4 commits intodoctrine:0.5.xfrom
alamirault:multi-reference-same-file
Open

Multi reference same file#276
alamirault wants to merge 4 commits intodoctrine:0.5.xfrom
alamirault:multi-reference-same-file

Conversation

@alamirault
Copy link

Try fix #275

When a ref is in a included file which is used multiple time, generated anchor it's always the same and not the best.

$contents
);

$expected = '<p>Reference is <a href="page2.html#reference-one">here</a></p>';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For anyone wondering, the bug is that without @alamirault 's changes, instead of page2.html, page1.html is used.

@alamirault alamirault requested a review from greg0ire January 14, 2024 16:25
@greg0ire
Copy link
Member

It seems there are CI jobs failing. Please take a look at this guide for more on how to handle those.

@alamirault
Copy link
Author

@greg0ire I fixed code style, pipeline should be green now

.. _reference-one:

``one``
~~~~~~~~~~~ No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know that GitHub highlights a missing newline at the end of a file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better anchor URL for include reference

3 participants