Skip to content

Instantly share code, notes, and snippets.

@andrewgribben
Created March 22, 2017 14:41
Show Gist options
  • Save andrewgribben/7191854c2ccc4268320e9eb9e408ae32 to your computer and use it in GitHub Desktop.
Save andrewgribben/7191854c2ccc4268320e9eb9e408ae32 to your computer and use it in GitHub Desktop.
Epub footnote example
<?xml version='1.0' encoding='utf-8' ?>
<html xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ibooks="http://www.apple.com/2011/iBooks"
xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops"
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta charset="utf-8" />
<title>Test Content</title>
</head>
<body>
<a glossary="primary" epub:type="noteref" href="#key-Blast"><span>Blast</span></a>
<dl epub:type="glossary" xmlns:epub="http://www.idpf.org/2007/ops">
<aside epub:type="footnote" id="key-Blast">
<dl>
<dt data-glossary="term" epub:type="glossterm">
<h3 hidden="hidden" >Blast</h3>
</dt>
<dd epub:type="glossdef" data-glossary="definition">
<p>Boom!</p>
</dd>
</dl>
</aside>
</dl>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment