New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOXIA-731] Simplify HTML markup emitted from Sink.verbatim #202
Conversation
8d72e9f
to
55f1695
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very nice. Can you test it down the line to Sitetools and Maven Site Plugin? Maven Fluido Skin needs to be changed for sure. Also have a look at this and test it: https://github.com/apache/maven-reporting-impl/blob/master/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java
doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
Show resolved
Hide resolved
|
||
@Override | ||
protected String getVerbatimSource() { | ||
return null; // not supported in MD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, CommonMark does not support this. Eventually a link to https://spec.commonmark.org/0.31.2/#fenced-code-blocks might make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure fenced code blocks are related. There is also https://spec.commonmark.org/0.31.2/#indented-code-block and both really refer to code only as there is no verbatim without code semantics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't what a meant. I meant just add the link I have provided and explain why we return null since this is not a missing/broken test.
Emit either <pre> or <pre><code>. Add parser tests for verbatim content (for all parsers)
It works fine now together with apache/maven-fluido-skin#58. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for the comment I am happy/fine with this change.
55f1695
to
0621761
Compare
Use either
<pre>
or<pre><code>
.Add parser tests for verbatim content (for all parsers)