[ 
https://issues.apache.org/jira/browse/DOXIA-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907328#comment-17907328
 ] 

Konrad Windszus commented on DOXIA-768:
---------------------------------------

According to https://spec.commonmark.org/0.31.2/#fenced-code-blocks there is no 
escaping necessary. Therefore this seems to be an issue with the md -> html -> 
sink transformation (maybe even a bug in the underlying flexmark-java).

> 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)

Reply via email to