const templateHTML = `
`; export default function(dom, data) { let el = dom.querySelector('dt-appendix') if (el) { let userHTML = el.innerHTML; el.innerHTML = templateHTML; let newHTML = ""; // If we have some footnotes on the page, render a container for the footnote list. if (dom.querySelector("dt-fn")) { newHTML = newHTML + `

Footnotes

`; } // If we have any citations on the page, render a container for the bibliography. if (dom.querySelector("dt-cite")) { newHTML = newHTML + `

References

`; } let div = el.querySelector("div.l-body") div.innerHTML = userHTML + newHTML; } }