[ https://issues.apache.org/jira/browse/DOXIA-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907340#comment-17907340 ]
Konrad Windszus commented on DOXIA-768: --------------------------------------- It turns out it works correct in case the fenced code prefix is at the start of the line. I experienced this with invalid MD which looks like this {code} ```xml <?xml version="1.0" encoding="UTF-8"?> <document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd"> ``` {code} > Markdown: Fenced code block containing processing instruction leads to > exception > -------------------------------------------------------------------------------- > > Key: DOXIA-768 > URL: https://issues.apache.org/jira/browse/DOXIA-768 > Project: Maven Doxia > Issue Type: Bug > Affects Versions: 2.0.0 > Reporter: Konrad Windszus > Priority: Major > > The following exception is emitted for this md: > {code} > ```xml > <?xml version="1.0" encoding="UTF-8"?> > <document xmlns="http://maven.apache.org/XDOC/2.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 > http://maven.apache.org/xsd/xdoc-2.0.xsd"> > ``` > {code} > {code} > Failed to render site: Error parsing '.../example.md', line ..: Error parsing > the model: processing instruction can not have PITarget with reserved xml > name (position: TEXT seen ...</code></pre>\n<?xml ... @) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)