goblindegook / fragmentions
Fragmentions allow linking to document sections on WordPress sites using words or phrases.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:wordpress-plugin
Requires
- php: >=5.3.2
Requires (Dev)
- phpunit/phpunit: 4.8.23
- symfony/yaml: ~2.1
This package is not auto-updated.
Last update: 2024-11-19 05:04:22 UTC
README
Fragmentions allow linking to document sections on WordPress sites using words or phrases.
Fragmentions were proposed by Kevin Marks in a 2014 blog post as a better alternative to hyperlinking using fragments. Fragmentions use ##
to match words or phrases in a document.
In the following example, clicking "TL;DR" would jump to the <strong>
element containing "Life, Liberty and the pursuit of Happiness":
<article>
<p>
<a href="##pursuit">TL;DR</a>
</p>
<p>
When in the Course of human events, it becomes necessary for one people
to dissolve the political bands which have connected them with another,
and to assume among the powers of the earth, the separate and equal
station to which the Laws of Nature and of Nature’s God entitle them, a
decent respect to the opinions of mankind requires that they should
declare the causes which impel them to the separation.
</p>
<p>
We hold these truths to be self-evident, that all men are created
equal, that they are endowed by their Creator with certain unalienable
Rights, that among these are <strong>Life, Liberty and the pursuit of
Happiness</strong>.
</p>
</article>
This plugin relies on Jonathan Neal's Fragmentions script.