generate correct HTML for code blocks
This commit is contained in:
@@ -160,7 +160,7 @@ object KDocRenderer {
|
|||||||
sb.trimEnd()
|
sb.trimEnd()
|
||||||
sb.append("<pre><code>")
|
sb.append("<pre><code>")
|
||||||
processChildren()
|
processChildren()
|
||||||
sb.append("</code><pre>")
|
sb.append("</code></pre>")
|
||||||
}
|
}
|
||||||
MarkdownElementTypes.SHORT_REFERENCE_LINK,
|
MarkdownElementTypes.SHORT_REFERENCE_LINK,
|
||||||
MarkdownElementTypes.FULL_REFERENCE_LINK -> {
|
MarkdownElementTypes.FULL_REFERENCE_LINK -> {
|
||||||
|
|||||||
@@ -7,6 +7,11 @@
|
|||||||
*
|
*
|
||||||
* Third line
|
* Third line
|
||||||
* ```
|
* ```
|
||||||
|
*
|
||||||
|
* Text between code blocks.
|
||||||
|
* ```
|
||||||
|
* ```
|
||||||
|
* Text after code block.
|
||||||
*/
|
*/
|
||||||
fun testMethod() {
|
fun testMethod() {
|
||||||
|
|
||||||
@@ -25,4 +30,6 @@ fun test() {
|
|||||||
//INFO: Second line
|
//INFO: Second line
|
||||||
//INFO:
|
//INFO:
|
||||||
//INFO: Third line
|
//INFO: Third line
|
||||||
//INFO: </code><pre>
|
//INFO: </code></pre><p>Text between code blocks.</p>
|
||||||
|
//INFO: <pre><code>
|
||||||
|
//INFO: </code></pre><p>Text after code block.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user