Konrad Windszus created DOXIA-763:
-------------------------------------
Summary: MarkdownSink: Distinguish between verbatim with source
attribute and without
Key: DOXIA-763
URL: https://issues.apache.org/jira/browse/DOXIA-763
Project: Maven Doxia
Issue Type: Bug
Components: Module - Markdown
Affects Versions: 2.0.0
Reporter: Konrad Windszus
Assignee: Konrad Windszus
Fix For: 2.1.0
Currently both lead to [fenced code blocks without info
string|https://spec.commonmark.org/0.31.2/#fenced-code-blocks] however the
MarkdownParser emits fenced code blocks without info string with the special
classes {{nocode nohighlight}}
(https://github.com/apache/maven-doxia/blob/c36b51695bdf4fe6f515d7e3fcdcec264867d990/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java#L152)
which basically makes it just a verbatim block. In order to emit without those
classes one has to provide an info string (usually the programming language of
the following block). As the language is not provided in Sink API one should
instead rely on a hardcoded info string {{unknown}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)