Better Markdown Snippets
meta
blog
Pithier markdown tips—just the things I forget…
The forgetting curve hypothesizes the decline of memory retention in time. The curve shows how information is lost over time when there is no attempt to retain it or it is not used frequently. Here is Markdown I don’t use frequently enough to recall perfectly!
Cross References
The reserved prefixes are: fig
, tbl
, lst
, tip
, nte
, wrn
, imp
, cau
, thm
, lem
, cor
, prp
, cnj
, def
, exm
, exr
, sol
, rem
, eq
, sec
.
You can group references.
[@fig-elephant; @fig-panther; @fig-rabbit]. As illustrated in
Environments
Available environments:thm
, lem
, cor
, prp
, def
, exm
, exr
, sol
, rem
. Create in a div.
Callouts
Note
Note that there are five types of callouts:: note
, tip
, warning
, caution
, and important
. They are created in a div with {.callout-note}
.
Footnotes
Inline footnotes^[Here is the in-line footnote.]. Separate footnotes[^label].
[^label]: here is the text of the footnote.
Layout and Captions for Python Code
It is critical that the tbl
prefix matches the cap[tion]. There is no cross reference without the caption?
#| label: tbl-tri-1
#| tbl-cap: Caption for the tables
#| tbl-subcap:
#| - 'Table 1 Triangles'
#| - 'Table 2 link ratios'
#| - 'Table 3 ultimates'
#| layout-ncol: 1