tarleb / jira-wiki-markup

Handle Jira wiki markup
MIT License
8 stars 5 forks source link

Empty AST for `{noformat}` without \n after tag #7

Closed shapel closed 3 years ago

shapel commented 3 years ago

Hello Looks like I found the case with wrong behavior for {noformat}:

Command echo "{noformat}test{noformat}\n" | pandoc -f jira -t json | jq produces

{
  "pandoc-api-version": [
    1,
    22
  ],
  "meta": {},
  "blocks": []
}

But if we add \n after {noformat} tag than it will parsed correctly echo "{noformat}\ntest{noformat}\n" | pandoc -f jira -t json | jq

{
  "pandoc-api-version": [
    1,
    22
  ],
  "meta": {},
  "blocks": [
    {
      "t": "CodeBlock",
      "c": [
        [
          "",
          [],
          []
        ],
        "test"
      ]
    }
  ]
}
shapel commented 3 years ago

Hi Sorry for missing some other tags related to his issue like code, panel... Should I submit a new issue or this issue should be reopened?

tarleb commented 3 years ago

Ah, I missed those, too. A new issue would be best.