unison
unison copied to clipboard
quote syntax in Doc literals
Since Doc literals have a markdown-like syntax, I was expecting > to start a block quote. For example I expected:
> This is a quote.
to render as:
This is a quote.
But instead the > is treated as a normal word.
You can get a block quote by explicitly using the Blockquote constructor. The following shows how the two approaches are parsed:
{{
> This is not a quote.
{{ Blockquote {{ This is a quote. }} }}
}}
⧩
UntitledSection
[ Paragraph [Word ">", Word "This", Word "is", Word "not", Word "a", Word "quote."]
, Paragraph [Blockquote (Paragraph [Word "This", Word "is", Word "a", Word "quote."])]
]