This issue has been created
There is 1 update.
 
 
Cristal / cid:jira-generated-image-avatar-26ae8ae9-3338-4b17-be32-670780c792e8 CRISTAL-716 Open

Cristal's markdown parser fails to parse macro attributes properly

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-84a4b1a0-dc2e-4345-b5b0-0eeb4f58e50a Clément Eraud created this issue on 27/Oct/25 18:16
 
Summary: Cristal's markdown parser fails to parse macro attributes properly
Issue Type: cid:jira-generated-image-avatar-26ae8ae9-3338-4b17-be32-670780c792e8 Improvement
Affects Versions: 0.23.1
Assignee: Unassigned
Components: Markdown
Created: 27/Oct/25 18:16
Priority: cid:jira-generated-image-static-major-86c7ab54-be1b-4ecb-8311-9ce44df87f27 Major
Reporter: Clément Eraud
Description:

When parsing macros inside a Markdown content, the parser fails with various types of errors. Concrete example:

Unable to find source-code formatter for language: markdown. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
{{xwikiMacro attr="<strong>salut</strong>" /}}

This will be parsed as a `{{xwikiMacro attr="` attr, followed by a bold `salut` text, followed by `" //}`.

 
 

1 update

 
cid:jira-generated-image-avatar-84a4b1a0-dc2e-4345-b5b0-0eeb4f58e50a Changes by Clément Eraud on 27/Oct/25 18:16
 
Description: When parsing macros inside a Markdown content, the parser fails with various types of errors. Concrete example:

{code:markdown}
{{xwikiMacro attr="<strong>salut</strong>" /}}
{code}

This will be parsed as a
`{{xwikiMacro _xwikiMacro attr=" ` attr, _ followed by a bold ` * salut ` * text, followed by ` _ " //} ` _ .