diff --git a/Sources/DocCHTML/MarkdownRenderer+Parameters.swift b/Sources/DocCHTML/MarkdownRenderer+Parameters.swift index a316f6e49..45a43589f 100644 --- a/Sources/DocCHTML/MarkdownRenderer+Parameters.swift +++ b/Sources/DocCHTML/MarkdownRenderer+Parameters.swift @@ -78,9 +78,7 @@ package extension MarkdownRenderer { for parameter in parameterInfo { // name items.append( - .element(named: "dt", children: [ - .element(named: "code", children: [.text(parameter.name)]) - ]) + .element(named: "dt", children: [.text(parameter.name)]) ) // description items.append( @@ -131,9 +129,7 @@ package extension MarkdownRenderer { let index = (offset + primaryOnlyIndices.count(where: { $0 < offset })) * 2 items.insert(contentsOf: [ // Name - .element(named: "dt", children: [ - .element(named: "code", children: [.text(parameter.name)]) - ], attributes: ["class": "\(secondary.language.id)-only"]), + .element(named: "dt", children: [.text(parameter.name)], attributes: ["class": "\(secondary.language.id)-only"]), // Description .element(named: "dd", children: parameter.content.map { visit($0) }, attributes: ["class": "\(secondary.language.id)-only"]) ], at: index) diff --git a/Tests/DocCCommandLineTests/FileWritingHTMLContentConsumerTests.swift b/Tests/DocCCommandLineTests/FileWritingHTMLContentConsumerTests.swift index 9e20d7feb..6d4297a5f 100644 --- a/Tests/DocCCommandLineTests/FileWritingHTMLContentConsumerTests.swift +++ b/Tests/DocCCommandLineTests/FileWritingHTMLContentConsumerTests.swift @@ -347,15 +347,11 @@ final class FileWritingHTMLContentConsumerTests: XCTestCase {
first
- Description of the first parameter.
second
- Description of the second parameter.
First
-
Some formatted description with code
Second
- Some other formatted description
@@ -154,16 +150,12 @@ struct MarkdownRenderer_PageElementsTests { parameters.assertMatches(prettyFormatted: true, expectedXMLString: """First
- Some formatteddescription with code
Second
- Some other formatted description
@@ -194,27 +186,19 @@ struct MarkdownRenderer_PageElementsTests { ParametersFirstCommon
- Available in both languages
SwiftOnly
- Only available in Swift
SecondCommon
- Also available in both languages
ObjectiveCOnly
- Only available in Objective-C
First
- Some description
Third
- Some description
Second
- Some description