       |> String.replace(~r/\/\d+$/, "")
 
     anchor_string =
-      "<a href=\"##{type_id}\""
+      "<a href=\"##{type_id}\" class=\"detail-link\""
 
     inject = """
       <a name="//apple_ref/cpp/Type/#{type}" class="dashAnchor"></a>

        |> Enum.map(&Floki.attribute(&1, "id"))
    end
    |> Enum.flat_map(&(&1))
  end

  defp inject_function_anchors(html_content, []), do: html_content
  defp inject_function_anchors(html_content, [function_id | rest] = _function_ids) do
    function_name =
      type_id
      |> String.replace("t:", "")
      |> String.replace(~r/\/\d+$/, "")

    anchor_string =
      "<a href=\"##{type_id}\""

    inject = """
      <a name="//apple_ref/cpp/Type/#{type}" class="dashAnchor"></a>
      #{anchor_string}
    """

    updated_html_content =
      html_content
      |> String.replace(anchor_string, inject)

    inject_type_anchors(updated_html_content, rest)
  end

  defp find_callback_ids(html_content) do
    html_content
  end

  defp inject_callback_anchors(html_content, []), do: html_content

  end

  defp find_macro_ids(html_content) do
    []
  end

  defp inject_macro_anchors(html_content, []), do: html_content
