Skip to content

Editorial · @csdr/editorial + remark/rehype

Ref, citations & footnotes

Cross-references resolve to "Figure N"/"Table N" at build; [@key] citations render APA with a bibliography; [^1] footnotes are GFM.

Import
import { Ref } from '@csdr/editorial'
Use on
reports

Cross-references

Give figures and tables an id; refer to them with <Ref to="fig-annual" /> or the text form {ref:fig-annual}. Numbers are assigned in order of appearance at build (remark-crossref).

Ref

As Figure 1 shows…

Code
<Figure id="fig-annual" caption="…">…</Figure>

As <Ref to="fig-annual" /> shows … or, in plain text, {ref:fig-annual}.

Citations

Add entries to src/content/bib/references.bib and cite with [@key]; author-date APA in text, bibliography under a ## References heading followed by [^ref].

Citation

Begun by Keeling (Keeling et al., 1976) …

Code
Begun by Keeling [@keeling1976] …

## References

[^ref]

Footnotes

GFM footnote

Decadal averages make the acceleration plain.1

Code
Decadal averages make the acceleration plain.[^1]

[^1]: The annual increase is …