@@ -188,7 +188,7 @@ String wildcardMention(WildcardMentionOption wildcardOption, {
188188/// result may be surprising.
189189///
190190/// The part between "(" and ")" is just a "link destination" (no "link title").
191- /// That destination is the string [destination] , if provided .
191+ /// That destination is the string [destination] .
192192/// If [destination] has parentheses in it, the result may be surprising.
193193// TODO: Try harder to guarantee output that creates an inline link,
194194// and in particular, the intended one. We could help with this by escaping
@@ -199,8 +199,8 @@ String wildcardMention(WildcardMentionOption wildcardOption, {
199199// > Backtick code spans, autolinks, and raw HTML tags bind more tightly
200200// > than the brackets in link text. Thus, for example, [foo`]` could not be
201201// > a link text, since the second ] is part of a code span.
202- String inlineLink (String visibleText, String ? destination) {
203- return '[$visibleText ](${ destination ?? '' } )' ;
202+ String inlineLink (String visibleText, String destination) {
203+ return '[$visibleText ]($destination )' ;
204204}
205205
206206/// What we show while fetching the target message's raw Markdown.
0 commit comments