diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 53ccc708b..8393a8e9d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ assertj = "3.27.7" checksumPlugin = "1.4.0" # 5.0.3 is the last version compatible with Kotlin 2.2 clikt = "5.0.3" -commonMark = "0.29.0" +commonMark = "0.30.0" downloadTaskPlugin = "5.7.0" eclipseCdtFormat = "12.2" errorProne = "2.50.0" diff --git a/pkl-doc/src/main/kotlin/org/pkl/doc/Markdown.kt b/pkl-doc/src/main/kotlin/org/pkl/doc/Markdown.kt index fcc39028a..038173955 100644 --- a/pkl-doc/src/main/kotlin/org/pkl/doc/Markdown.kt +++ b/pkl-doc/src/main/kotlin/org/pkl/doc/Markdown.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved. + * Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,6 +103,9 @@ internal class MarkdownParserContext( override fun getCustomLinkProcessors(): MutableList = mutableListOf() override fun getCustomLinkMarkers(): MutableSet = mutableSetOf() + + // default value from org.commonmark.parser.Parser.Builder.maxInlineNesting + override fun getMaxInlineNesting(): Int = 100 } internal class MarkdownNodeRenderer(context: HtmlNodeRendererContext) :