Files
John MacFarlane ef6b669e25 Markdown reader: Fix bug with lists_without_preceding_blankline.
This was not properly implemented, causing some unintended
results. Closes #11534.
2026-03-17 19:37:08 +01:00

633 B

% pandoc -f markdown+lists_without_preceding_blankline+alerts -t native
:::: caution
::: title
Caution
:::

Foo bar, wuppie fluppie!
::::
^D
[ Div
    ( "" , [ "caution" ] , [] )
    [ Div ( "" , [ "title" ] , [] ) [ Para [ Str "Caution" ] ]
    , Para
        [ Str "Foo"
        , Space
        , Str "bar,"
        , Space
        , Str "wuppie"
        , Space
        , Str "fluppie!"
        ]
    ]
]
% pandoc -f markdown+lists_without_preceding_blankline -t native
hello
- a
- b
c
^D
[ Para [ Str "hello" ]
, BulletList
    [ [ Plain [ Str "a" ] ]
    , [ Plain [ Str "b" , SoftBreak , Str "c" ] ]
    ]
]