const html = `

References

Errors, Reuse, and Citation

If you see mistakes or want to suggest changes, please create an issue on GitHub.

Diagrams and text are licensed under Creative Commons Attribution CC-BY 2.0, unless noted otherwise, with the source available on GitHub. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: “Figure from …”.

For attribution in academic contexts, please cite this work as


  

BibTeX citation


`; export default function(dom, data) { let el = dom.querySelector('dt-appendix') if (el) { let oldHtml = el.innerHTML; el.innerHTML = html; let div = el.querySelector("div.l-body") if (dom.querySelector("dt-fn")) { div.innerHTML = `

Footnotes

` + div.innerHTML; } div.innerHTML = oldHtml + div.innerHTML; if (data.githubCompareUpdatesUrl) { div.innerHTML = `

Updates

View all changes to this article since it was first published.

` + div.innerHTML; } el.querySelector("a.github").setAttribute("href", data.githubUrl); el.querySelector("a.github-issue").setAttribute("href", data.githubUrl + "/issues/new"); el.querySelector(".citation.short").textContent = data.concatenatedAuthors + ", " + '"' + data.title + '", Distill, ' + data.publishedYear + "."; var bibtex = "@article{" + data.slug + ",\n"; bibtex += " author = {" + data.bibtexAuthors + "},\n"; bibtex += " title = {" + data.title + "},\n"; bibtex += " journal = {Distill},\n"; bibtex += " year = {" + data.publishedYear + "},\n"; bibtex += " note = {" + data.url + "}\n"; bibtex += "}"; el.querySelector(".citation.long").textContent = bibtex; } }