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

Add option to add unique prefix to footnote references #55

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

Add option to add unique prefix to footnote references #55

wants to merge 2 commits into from

Conversation

robinadr
Copy link

Setting footnote prefix: ParsedownExtra::setFootnotePrefix( string $footnotePrefix )
This should be a string that is valid in an HTML attribute, i.e. escaped properly.
Default value is blank, if this is kept blank behavior is as before.
Use case in mind is for something like a blog, where you can set the prefix to something unique like a post ID.

Added test_footnote_prefix() to test cases.

fixes #50

Setting footnote prefix: ParsedownExtra::setFootnotePrefix( string $footnotePrefix )
	This should be a string that is valid in an HTML attribute, i.e. escaped properly.
	Default value is blank, if this is kept blank behavior is as before.
	Use case in mind is for something like a blog, where you can set the prefix to something unique like a post ID.

Added test_footnote_prefix() to test cases.
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.

Unique Footnote anchors
1 participant