Hi,
It could relates to this issue https://github.com/tarleb/jira-wiki-markup/issues/7.
When I try to parse following markup:
PR: {panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\r\n*As a* :\r\n *I want* :\r\n *So that* :\r\n{panel}\r\n{panel:title=Acceptance Criteria|borderStyle=dashed|titleBGColor=#ffffce|bgColor=#ffffce}\n\r\n*Given that* : \r\n *When* :\r\n *Then* :\r\n{panel}
I have only 1 pannel parsed in AST:
{"pandoc-api-version":[1,22],"meta":{},"blocks":[{"t":"Para","c":[{"t":"Str","c":"PR:"},{"t":"Space"},{"t":"Str","c":"{panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\\r\\n*As"},{"t":"Space"},{"t":"Str","c":"a*"},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"I"},{"t":"Space"},{"t":"Str","c":"want"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"So"},{"t":"Space"},{"t":"Str","c":"that"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"}]}]}
If I change initial payload to this:
PR: {panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\r\n*As a* :\r\n *I want* :\r\n *So that* :\r\n{panel} \r\n{panel:title=Acceptance Criteria|borderStyle=dashed|titleBGColor=#ffffce|bgColor=#ffffce}\n\r\n*Given that* : \r\n *When* :\r\n *Then* :\r\n{panel}
I get full AST:
{"pandoc-api-version":[1,22],"meta":{},"blocks":[{"t":"Para","c":[{"t":"Str","c":"PR:"},{"t":"Space"},{"t":"Str","c":"{panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\\r\\n*As"},{"t":"Space"},{"t":"Str","c":"a*"},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"I"},{"t":"Space"},{"t":"Str","c":"want"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"So"},{"t":"Space"},{"t":"Str","c":"that"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"}]},{"t":"Div","c":[["",["panel"],[]],[{"t":"Para","c":[{"t":"Str","c":"\\r\\n{panel:title=Acceptance"},{"t":"Space"},{"t":"Str","c":"Criteria|borderStyle=dashed|titleBGColor=#ffffce|bgColor=#ffffce}\\n\\r\\n*Given"},{"t":"Space"},{"t":"Str","c":"that*"},{"t":"Space"},{"t":"Str","c":":"},{"t":"Space"},{"t":"Str","c":"\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"When"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"Then"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"}]}]]}]}
Hi, It could relates to this issue https://github.com/tarleb/jira-wiki-markup/issues/7. When I try to parse following markup:
PR: {panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\r\n*As a* :\r\n *I want* :\r\n *So that* :\r\n{panel}\r\n{panel:title=Acceptance Criteria|borderStyle=dashed|titleBGColor=#ffffce|bgColor=#ffffce}\n\r\n*Given that* : \r\n *When* :\r\n *Then* :\r\n{panel}
I have only 1 pannel parsed in AST:{"pandoc-api-version":[1,22],"meta":{},"blocks":[{"t":"Para","c":[{"t":"Str","c":"PR:"},{"t":"Space"},{"t":"Str","c":"{panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\\r\\n*As"},{"t":"Space"},{"t":"Str","c":"a*"},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"I"},{"t":"Space"},{"t":"Str","c":"want"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"So"},{"t":"Space"},{"t":"Str","c":"that"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"}]}]}
If I change initial payload to this:
PR: {panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\r\n*As a* :\r\n *I want* :\r\n *So that* :\r\n{panel} \r\n{panel:title=Acceptance Criteria|borderStyle=dashed|titleBGColor=#ffffce|bgColor=#ffffce}\n\r\n*Given that* : \r\n *When* :\r\n *Then* :\r\n{panel}
I get full AST:{"pandoc-api-version":[1,22],"meta":{},"blocks":[{"t":"Para","c":[{"t":"Str","c":"PR:"},{"t":"Space"},{"t":"Str","c":"{panel:title=Requirement|titleBGColor=#f7d6c1|bgColor=#f7d6c1}\\r\\n*As"},{"t":"Space"},{"t":"Str","c":"a*"},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"I"},{"t":"Space"},{"t":"Str","c":"want"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"So"},{"t":"Space"},{"t":"Str","c":"that"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"}]},{"t":"Div","c":[["",["panel"],[]],[{"t":"Para","c":[{"t":"Str","c":"\\r\\n{panel:title=Acceptance"},{"t":"Space"},{"t":"Str","c":"Criteria|borderStyle=dashed|titleBGColor=#ffffce|bgColor=#ffffce}\\n\\r\\n*Given"},{"t":"Space"},{"t":"Str","c":"that*"},{"t":"Space"},{"t":"Str","c":":"},{"t":"Space"},{"t":"Str","c":"\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"When"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"},{"t":"Space"},{"t":"Strong","c":[{"t":"Str","c":"Then"}]},{"t":"Space"},{"t":"Str","c":":\\r\\n"}]}]]}]}