Repository: JoshuaKGoldberg/create-typescript-app (ts)

Issue:
🐛 Bug: Initialization should remove project logo line from README.md
### Bug Report Checklist

- [X] I have tried restarting my IDE and the issue persists.
- [X] I have pulled the latest `main` branch of the repository.
- [X] I have [searched for related issues](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aissue) and found none that matched my issue.

### Expected

After creating a repository from the template on GitHub, running `pnpm i`, and then running `pnpm initialize`, the README.md shouldn't have a logo asset. Such a thing wouldn't exist in a new repository.

### Actual

https://github.com/JoshuaKGoldberg/github-notifications-prune/blob/1abae2faee97872dc7b53362d3918f0412d6e8b1/README.md#L18:

```md
<img align="right" alt="Project logo: the TypeScript blue square with rounded corners, but a plus sign instead of 'TS'" src="./docs/github-notifications-prune.png">
```

### Additional Info

_No response_

Pull request:
fix: remove project logo in initialization
## PR Checklist

- [x] Addresses an existing open issue: fixes #1366
- [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken

## Overview

💖 

Patch:
diff --git a/src/steps/updateReadme.ts b/src/steps/updateReadme.ts
index 7eb3dab..744ef14 100644
--- a/src/steps/updateReadme.ts
+++ b/src/steps/updateReadme.ts
@@ -22,7 +22,9 @@ export async function updateReadme(
 ) {
 	let contents = await readFileSafe("./README.md", "");
 
-	contents = contents.replaceAll("JoshuaKGoldberg", options.owner);
+	contents = contents
+		.replaceAll("JoshuaKGoldberg", options.owner)
+		.replace(/\n<img .+ alt="Project logo.+>\n/gs, "");
 
 	if (!options.excludeTemplatedBy && !endOfReadmeMatcher.test(contents)) {
 		contents += endOfReadmeNotice;


Test patch:
diff --git a/src/steps/updateReadme.test.ts b/src/steps/updateReadme.test.ts
index 5247063..bd7ca47 100644
--- a/src/steps/updateReadme.test.ts
+++ b/src/steps/updateReadme.test.ts
@@ -63,12 +63,37 @@ describe("updateReadme", () => {
 
 	it("doesn't add a notice when the file contains it already", async () => {
 		mockReadFileSafe.mockResolvedValue(`
-			Existing JoshuaKGoldberg/create-typescript-app content.
-			
+Existing JoshuaKGoldberg/create-typescript-app content.
+
+<!-- You can remove this notice if you don't want it 🙂 no worries! -->
+
+> 💙 This package was templated using [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
+`);
+
+		await updateReadme(options);
+
+		expect(mockWriteFile.mock.calls).toMatchInlineSnapshot(`
+			[
+			  [
+			    "./README.md",
+			    "
+			Existing NewOwner/create-typescript-app content.
+
 			<!-- You can remove this notice if you don't want it 🙂 no worries! -->
-			
-			> 💙 This package was templated using [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
+
+			> 💙 This package was templated using [create-typescript-app](https://github.com/NewOwner/create-typescript-app).
+			",
+			  ],
+			]
 		`);
+	});
+
+	it("doesn't add a notice when the file contains an older version of it already", async () => {
+		mockReadFileSafe.mockResolvedValue(`
+Existing JoshuaKGoldberg/create-typescript-app content.
+
+💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
+`);
 
 		await updateReadme(options);
 
@@ -77,22 +102,22 @@ describe("updateReadme", () => {
 			  [
 			    "./README.md",
 			    "
-						Existing NewOwner/create-typescript-app content.
-						
-						<!-- You can remove this notice if you don't want it 🙂 no worries! -->
-						
-						> 💙 This package was templated using [create-typescript-app](https://github.com/NewOwner/create-typescript-app).
-					",
+			Existing NewOwner/create-typescript-app content.
+
+			💙 This package is based on [@NewOwner](https://github.com/NewOwner)'s [create-typescript-app](https://github.com/NewOwner/create-typescript-app).
+			",
 			  ],
 			]
 		`);
 	});
 
-	it("doesn't add a notice when the file contains an older version of it already", async () => {
+	it("removes the project logo when it exists", async () => {
 		mockReadFileSafe.mockResolvedValue(`
-			Existing JoshuaKGoldberg/create-typescript-app content.
+Existing JoshuaKGoldberg/create-typescript-app content.
+
+<img align="right" alt="Project logo: the TypeScript blue square with rounded corners, but a plus sign instead of 'TS'" height="128" src="./docs/create-typescript-app.png" width="128">
 
-			💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
+💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
 		`);
 
 		await updateReadme(options);
@@ -102,9 +127,9 @@ describe("updateReadme", () => {
 			  [
 			    "./README.md",
 			    "
-						Existing NewOwner/create-typescript-app content.
+			Existing NewOwner/create-typescript-app content.
 
-						💙 This package is based on [@NewOwner](https://github.com/NewOwner)'s [create-typescript-app](https://github.com/NewOwner/create-typescript-app).
+			💙 This package is based on [@NewOwner](https://github.com/NewOwner)'s [create-typescript-app](https://github.com/NewOwner/create-typescript-app).
 					",
 			  ],
 			]