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

Issue 1039 Part 2 #1045

Merged
merged 8 commits into from
Jan 23, 2024
Merged

Issue 1039 Part 2 #1045

merged 8 commits into from
Jan 23, 2024

Conversation

attackant
Copy link

This PR adds the anchor link feature started in #1044 , keeping new changes separate for ease of reviewing.

@attackant attackant added this to the v2.4.4 milestone Jan 17, 2024
@attackant attackant self-assigned this Jan 17, 2024
The changes encompass various refactoring actions for apple exporter header class. These include implementing proper namespace usage, correctly declaring array data types, specifying return types as well as enhancing PHPDoc comments for methods for better code clarity and readability. Additionally, the future plan to remove duplicate methods across child classes is marked with a TODO comment.
In the `test-class-heading.php` and `test-class-parser.php` tests, an ID has been added to the heading in the HTML content. Several test functions have been updated to explicitly specify 'void' as the return type. Apart from these, a small tweak was made to streamline the HTML parsing verification logic.
Updated the class-heading component to include 'identifier' key for heading IDs. Adjusted regular expression in the build function to capture heading ID value, if set, from HTML input. This addition enhances navigation and provides anchor links to headings.
Copy link

@rpasillas rpasillas left a comment

Choose a reason for hiding this comment

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

🍔

Just a question for your consideration.

@attackant attackant merged commit c5afbf5 into issue-1039 Jan 23, 2024
@attackant attackant deleted the issue-1039-b branch January 23, 2024 00:00
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.

2 participants