Always prefix lines in bullet conversion commands

Both bulletToArrow and bulletToEmdash now prepend the symbol to every
selected line, not just lines starting with "* ". Lines with "* " still
have the marker stripped before the prefix is added.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 15:32:34 +01:00
parent 1fab274fd6
commit c0a84b439b
+2 -2
View File
@@ -19,12 +19,12 @@ export function cleanText(text: string): string {
export function bulletToEmdash(text: string): string { export function bulletToEmdash(text: string): string {
return text.split("\n").map(line => return text.split("\n").map(line =>
line.startsWith("* ") ? "— " + line.slice(2) : line line.startsWith("* ") ? "— " + line.slice(2) : "— " + line
).join("\n"); ).join("\n");
} }
export function bulletToArrow(text: string): string { export function bulletToArrow(text: string): string {
return text.split("\n").map(line => return text.split("\n").map(line =>
line.startsWith("* ") ? "→ " + line.slice(2) : line line.startsWith("* ") ? "→ " + line.slice(2) : "→ " + line
).join("\n"); ).join("\n");
} }