unison icon indicating copy to clipboard operation
unison copied to clipboard

quote syntax in Doc literals

Open ceedubs opened this issue 6 months ago • 0 comments

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."])]
  ]

ceedubs avatar Apr 25 '25 17:04 ceedubs