Open toastal opened 1 year ago
This may also tangentially relate to https://github.com/jgm/djot/issues/28#issuecomment-1535554065 if captions were generalized:
> I hold it that a little rebellion now and then is a good thing,
> and as necessary in the political world as storms in the physical.
^ Thomas Jefferson, _Papers of Thomas Jefferson_. Volume 11
I opted for that option, with a modified version of the Djot reader, in my Djot for SILE renderer (then styling such quotes as "epigraphs") -- but this is admittedly a workaround to fit my typesetting needs, until some consensus is reached.
FWIW I started implementing something similar in my own markdownish language using a tilde:
> Something intelligent said about markup languages
~ Not me
The text after the tilde
can contain other syntax elements like citations etc. (so you could have something like ~ [+@foo, p. 33]
as per #32).
>
denotes a<blockquote>
in Markdown/Djot— W3C HTML spec, https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element
As a user, I want syntax explicitly support attributing and citing blockquotes. This not only matches the HTML spec closer, but it's good to cite your sources! With explicit syntax it would be much easier to support styling that author information instead of it being in some generic
<p>
that can't reasonable be selected (made up CSS selector:blockquote + p:has(:where(text-begins-with("—"), text-begins-with("--"))
) or the last paragraph inside if nested. The point being having a consistent pattern will make it easier to group together with the blockquote and handle the blockquote accordingly instead of using ad-hoc conventions.Prior art: Asciidoctor
AsciiDoc Block syntax
AsciiDoc Markdown-style
Prior art: reStructuredText
This all said,
—
(em dash) seems to be the preferred symbol for quotation attribution and Djot uses triple hyphen,---
, for that symbol (and base AsciiDoc uses--
).For rendering, it still seems a bit unclear if attribution should live inside or outside of the
<blockquote>
, wrapped in a<div>
or in a<figure>
with<figcation>
to cite (and there's the<cite>
tag itself).