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 support/examples for footnotes #5

Open
hubgit opened this issue Mar 7, 2015 · 1 comment
Open

Add support/examples for footnotes #5

hubgit opened this issue Mar 7, 2015 · 1 comment

Comments

@hubgit
Copy link
Contributor

hubgit commented Mar 7, 2015

In one example, superscript references in one section need to be linked to notes in another section.

@hubgit
Copy link
Contributor Author

hubgit commented Mar 19, 2015

Maybe it's enough to just use HTML:

A sentence with a footnote<sup><a href="#footnote-1">1</a></sup>

<aside class="footnote" id="footnote-1">The content of the footnote</aside>

<script>
var links = $('a[href]');

$('aside.footnote').hide().each(function() {
  var hash = '#' + this.id;

  links.filter(function() {
    return this.hash === hash;
  }).popover({
    html: true,
    content: this.innerHTML
 });
});
</script>

Related links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant