···2121 routes = [{@alice_did, "alice.test", {:self, @alice_did}}]
2222 result = CommentBuilder.build_comment(@author_did, "author.test", routes, @handle_map)
23232424- assert result =~ "**[@alice.test](https://bsky.app/profile/did:plc:alice)** is a maintainer"
2424+ assert result =~ "- [@alice.test](https://bsky.app/profile/did:plc:alice) is a maintainer"
2525+ refute result =~ "##"
2526 end
26272728 test "formats self route with nil handle" do
2829 routes = [{@alice_did, nil, {:self, @alice_did}}]
2930 result = CommentBuilder.build_comment(@author_did, nil, routes)
30313131- assert result =~ "**`#{@alice_did}`** is a maintainer"
3232+ assert result =~ "- `#{@alice_did}` is a maintainer"
3233 end
33343434- test "formats direct vouch" do
3535+ test "formats direct vouch as a route" do
3536 routes = [{@alice_did, "alice.test", {:direct, @author_did}}]
3637 result = CommentBuilder.build_comment(@author_did, "author.test", routes, @handle_map)
37383838- assert result =~ "## atvouch routes for [@author.test](https://bsky.app/profile/did:plc:author)"
3939- assert result =~ "**[@alice.test](https://bsky.app/profile/did:plc:alice)**: direct vouch"
3939+ refute result =~ "##"
4040+ assert result =~ "- [@alice.test](https://bsky.app/profile/did:plc:alice) -> [@author.test](https://bsky.app/profile/did:plc:author)"
4041 assert result =~ "generated by [atvouch]"
4142 end
4243···48494950 result = CommentBuilder.build_comment(@author_did, "author.test", routes, @handle_map)
50515151- assert result =~ "**[@alice.test](https://bsky.app/profile/did:plc:alice)**:"
5252 assert result =~ "- [@alice.test](https://bsky.app/profile/did:plc:alice) -> [@bob.test](https://bsky.app/profile/did:plc:bob) -> [@author.test](https://bsky.app/profile/did:plc:author)"
5353 end
5454···6767 routes = [{@alice_did, "alice.test", {:routes, @author_did, []}}]
6868 result = CommentBuilder.build_comment(@author_did, "author.test", routes, @handle_map)
69697070- assert result =~ "**[@alice.test](https://bsky.app/profile/did:plc:alice)**: no routes found"
7070+ assert result =~ "- no route from [@alice.test](https://bsky.app/profile/did:plc:alice)"
7171 end
72727373- test "formats multiple maintainers with mixed results" do
7373+ test "formats multiple maintainers as flat list" do
7474 routes = [
7575 {@alice_did, "alice.test", {:direct, @author_did}},
7676 {@bob_did, "bob.test",
···80808181 result = CommentBuilder.build_comment(@author_did, "author.test", routes, @handle_map)
82828383- assert result =~ "**[@alice.test](https://bsky.app/profile/did:plc:alice)**: direct vouch"
8484- assert result =~ "**[@bob.test](https://bsky.app/profile/did:plc:bob)**:"
8383+ assert result =~ "- [@alice.test](https://bsky.app/profile/did:plc:alice) -> [@author.test](https://bsky.app/profile/did:plc:author)"
8584 assert result =~ "- [@bob.test](https://bsky.app/profile/did:plc:bob) -> [@carol.test](https://bsky.app/profile/did:plc:carol) -> [@author.test](https://bsky.app/profile/did:plc:author)"
8686- assert result =~ "**[@dave.test](https://bsky.app/profile/did:plc:dave)**: no routes found"
8585+ assert result =~ "- no route from [@dave.test](https://bsky.app/profile/did:plc:dave)"
8786 end
88878988 test "falls back to DID when handle is nil" do
9089 routes = [{@alice_did, nil, {:direct, @author_did}}]
9190 result = CommentBuilder.build_comment(@author_did, nil, routes)
92919393- assert result =~ "## atvouch routes for `#{@author_did}`"
9494- assert result =~ "**`#{@alice_did}`**: direct vouch"
9292+ refute result =~ "##"
9393+ assert result =~ "- [#{@alice_did}](https://bsky.app/profile/#{@alice_did}) -> [#{@author_did}](https://bsky.app/profile/#{@author_did})"
9594 end
96959796 test "falls back to DID when handle is empty string" do
9897 routes = [{@alice_did, "", {:direct, @author_did}}]
9998 result = CommentBuilder.build_comment(@author_did, "", routes)
10099101101- assert result =~ "## atvouch routes for `#{@author_did}`"
102102- assert result =~ "**`#{@alice_did}`**: direct vouch"
100100+ refute result =~ "##"
101101+ assert result =~ "- [#{@alice_did}](https://bsky.app/profile/#{@alice_did}) -> [#{@author_did}](https://bsky.app/profile/#{@author_did})"
103102 end
104103105104 test "formats three-hop path" do
···114113 "- [@alice.test](https://bsky.app/profile/did:plc:alice) -> [@bob.test](https://bsky.app/profile/did:plc:bob) -> [@carol.test](https://bsky.app/profile/did:plc:carol) -> [@author.test](https://bsky.app/profile/did:plc:author)"
115114 end
116115117117- test "formats multiple routes for one maintainer" do
116116+ test "formats multiple routes for one maintainer as flat list" do
118117 routes = [
119118 {@alice_did, "alice.test",
120119 {:routes, @author_did,