+++ title = "Marking up quotes" summary = "Exploring the semantics and properties of a quote, and how it differs from a citation or reference" date = 2024-10-12T18:07:26-05:00 streams = ["all"] toc = true autonumbering = false +++ ## preamble i was looking at Hugo's recent-ish feature for render hooks, specifically new support for render-blockquote.html which allows doing some cool things with markdown blockquotes, like rendering them as alerts or admonitions: ```md{title="alert.md"} > [!tip] > lorem ipsum ``` you can also set `markup.goldmark.parser.attribute.block = true` in your hugo.toml config file, which enables support for the "block attributes" syntax: ```md{title="block-attributes.md"} > lorem ipsum {cite="http://example.com/something"} ``` so i implemented support for these new features using the following logic: - if it has an `{{.AlertType}}` then it's not a quote, it's an alert/admonition/tip/note/etc. i choose to render these as `