Skip to content

Commit

Permalink
Improve links and ensure more links are rendered in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
onno-vos-dev committed Feb 28, 2024
1 parent 77cf3f0 commit 1970a8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/aws_codegen/docstring.ex
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,14 @@ defmodule AWS.CodeGen.Docstring do
end
end

{"a", attrs, children} = html_node ->
{"a", attrs, children} ->
case Enum.find(attrs, fn {attr, _} -> attr == "href" end) do
{_, href} ->
text = Floki.text(children)

if text == href do
"[#{href}]"
else
html_node
"#{text}: #{href}"
end

nil ->
Expand Down

0 comments on commit 1970a8a

Please sign in to comment.