From ca7f19d497c7d47ec1e0960952529fb4e549a5a4 Mon Sep 17 00:00:00 2001 From: Dom Corvasce Date: Sat, 22 Aug 2020 10:34:43 +0200 Subject: [PATCH] Fix Markdown listing of function parameters --- Changelog.md | 3 +++ .../swift-doc/Supporting Types/Components/Documentation.swift | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 59a5a259..693e9ac6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed listing of function parameters, when generating CommonMark documentation. + #170 by @domcorvasce. + - Fixed version number for swift-doc command. #159 by @mattt. diff --git a/Sources/swift-doc/Supporting Types/Components/Documentation.swift b/Sources/swift-doc/Supporting Types/Components/Documentation.swift index f1324288..ad96e1aa 100644 --- a/Sources/swift-doc/Supporting Types/Components/Documentation.swift +++ b/Sources/swift-doc/Supporting Types/Components/Documentation.swift @@ -49,7 +49,7 @@ struct Documentation: Component { Section { Heading { "Parameters" } List(of: documentation.parameters) { parameter in - Fragment { "\(parameter.name): \(parameter.description)" } + Fragment { "\(parameter.name): \(parameter.content)" } } } }