flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

YamlFrontMatterBlockParser ignores multi-key list items

Open tingley opened this issue 8 years ago • 1 comments

Probably an unusual case, but I have content like this:

---

section:
    - title: Front Matter Test Case
      note: |
        This content should be exposed.
    - title: Second Test case
      note: This content should also be exposed
---

This is the body content.

I'm using YamlFrontMatterExtension to try to process this content. However, the values of the note properties are never visited. When the parser sees something that looks like a list item (title, here), it adds that line as a node value. However, the subsequent note lines don't match any of the known patterns, and those lines are skipped.

tingley avatar May 09 '17 19:05 tingley

@tingley, thank you for the report. I will take a look at the extension. The extension was inherited from commonmark-java and I have not modified it beyond changes caused by core implementation. I will address it shortly.

vsch avatar May 10 '17 11:05 vsch