jgm / djot

A light markup language
https://djot.net
MIT License
1.71k stars 43 forks source link

Block-level multi-line attribute values are ignored #162

Closed hellux closed 1 year ago

hellux commented 1 year ago

This parses as block attributes:

{
 attr="long
 value
 spanning
 multiple
 lines"
 }
> a

but the value is truncated to only contain the first line:

<blockquote attr="long">
<p>a</p>
</blockquote>

It works as expected for inline attributes:

inline{attr="long
value
spanning..."}
<p><span attr="long
value
spanning...">inline</span></p>