You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/lang/DocumentationPreprocessor.kt
+25-17Lines changed: 25 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,7 @@ class DocumentationPreprocessor : KotlinIntegration {
27
27
return transformer.mapTraits(model) { _, trait ->
28
28
when (trait) {
29
29
isDocumentationTrait-> {
30
-
// There's definitely some improperly escaped HTML characters within preformat blocks in existing
31
-
// models. Ensure we strip those now, the parser is VERY forgiving and will mistreat any sequences
32
-
// of characters that happen to form tags as such.
Copy file name to clipboardExpand all lines: smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/lang/DocumentationPreprocessorTest.kt
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,25 @@ class DocumentationPreprocessorTest {
176
176
inputTest(input, expected)
177
177
}
178
178
179
+
@Test
180
+
fun`it renders description list section headers`() {
181
+
val input ="""
182
+
<dl>
183
+
<dt>term1</dt>
184
+
<dd><p>description1</p></dd>
185
+
<dt/>
186
+
<dd><p>definition of a nonexistent term...</p></dd>
0 commit comments