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

Extend to paragraphs, based on v1.0.4 #4

Open
wants to merge 59 commits into
base: master
Choose a base branch
from

Conversation

pewgeuges
Copy link

The Add Anchor Links functionality is optionally available for paragraphs, list items and block quotes, and it can be disabled for headings in case these get anchors from a TOC plugin and are made clickable.

This PR is based on v1.0.4. It replaces #2 as #2 is based on an older version and the fork was not rebased prior to preparing #2

repurposed for paragraphs
repurposed for paragraphs
added header, refactored code for transparency
updated header, comments, variables to reflect the new focus
updated readme according to the new purpose
I got stuck with the WP settings API, and the whole thing is behind the spec. So I’m throwing the code as-is and wait for the time to sit down and look how to properly extend it.

Duplicate disambiguation would be needed too.
Settings page display OK
checkboxes functional

Backend not working!
just for the record
for the record
account for using an older file for now
meanwhile reverted to paragraphs only
work is in progress, while 2 files are usable as provisionally intended
better regex (simpler is better)
account for better regex
recovered improved comments
add licence in file header
@pewgeuges pewgeuges mentioned this pull request Apr 20, 2021
@pewgeuges
Copy link
Author

@vyskoczilova

Sorry for the complications, but the correct view of the really proposed changes is now available at pewgeuges/add-anchor-links@version-1.0.4...pewgeuges:extend-to-paragraphs

@pewgeuges
Copy link
Author

@vyskoczilova

Actually found needless edits and reverted them, sorry for these. Also tried to minimize changes overall, shortening some of the added docblocks.
Good luck for your project likewise! Thanks.

@pewgeuges

WordPress uses p tags in blockquote elements.
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.

1 participant