pandoc/test/command/yaml-with-chomp.md
John MacFarlane 3876f15b45 Ensure that metadata values w/o trailing newlines are...
parsed as inlines, as the manual states.

Previously, they were parsed as inlines if they would
otherwise have been a single Plain or Para, but otherwise
left unchanged.  This led to some quirky results (e.g. #8143).
We now use the general function `blocksToInlines` from T.P.Shared.
2022-06-22 23:09:51 -07:00

350 B

% pandoc -s -t native
---
ml: |-
    TEST

    BLOCK
...
^D
Pandoc
  Meta
    { unMeta =
        fromList
          [ ( "ml"
            , MetaInlines
                [ Str "TEST"
                , Space
                , Str "\182"
                , Space
                , Str "BLOCK"
                ]
            )
          ]
    }
  []