diff --git a/Changelog.md b/Changelog.md index b2e5cb10..b5ddd8f3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -43,6 +43,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed regression that caused nodes in relationships graph to not have links to their corresponding symbol documentation. #153 by @mattt. +- Fixed markup for parameter descriptions in HTML output. + #156 by @mattt. ## [1.0.0-beta.3] - 2020-05-19 diff --git a/Sources/swift-doc/Supporting Types/Components/Documentation.swift b/Sources/swift-doc/Supporting Types/Components/Documentation.swift index ae533dd2..f1324288 100644 --- a/Sources/swift-doc/Supporting Types/Components/Documentation.swift +++ b/Sources/swift-doc/Supporting Types/Components/Documentation.swift @@ -119,7 +119,7 @@ struct Documentation: Component { type = nil } - return (entry.name, type, entry.description) + return (entry.name, type, entry.content) } fragments.append(#""" @@ -145,7 +145,7 @@ struct Documentation: Component { return #""" \#(softbreak(entry.name)) - \#(typeCell) + \#(typeCell) \#(commonmark: entry.description) """# as HypertextLiteral.HTML