Fix markdown metadata reading

Was breaking on trailing whitespace, which is markdown for <br> and
something people could commonly put after metadata, as it makes things
more readable when processed by regular markdown.
Markdown reader separators and foreword

- make separators configurable
- if first block is separator, add an empty foreword