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

update anchor.js and small hack to ignore some anchors #10

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

update anchor.js and small hack to ignore some anchors #10

wants to merge 14 commits into from

Conversation

LaurentOngaro
Copy link

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

Copy link
Member

@rhukster rhukster left a 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
Copy link
Member

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 :)

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.

3 participants