-
Notifications
You must be signed in to change notification settings - Fork 7
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
update anchor.js and small hack to ignore some anchors #10
base: develop
Are you sure you want to change the base?
Conversation
usefull for instance to avoid duplicate anchors when anchor is used with the prettyprint plugin activated just add the css class 'hideFromAnchorJS' to the elements to ignore
…it in admin. As it updating could be done with precautions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be fine but the FORKED
text in the blueprint.yaml would need to be removed before i merge.
@@ -70,7 +70,39 @@ public function onTwigSiteVariables() | |||
$class | |||
$truncate | |||
}; | |||
// LO Hack: allow content to be hidden from the anchor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put this in the README.md, not in the comments in the code. Also people don't like to see the word "hack" as it has negative connotations :)
Update anchor.js to the 4.0.0 version
add a hack to allow content to be hidden from the anchor
usefull for instance when anchor is used with the prettyprint plugin activated
just add the css class 'hideFromAnchorJS' to the elements to hide