Skip to content

Commit

Permalink
feat(translate): replace newlines with quote markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AtoraSuunva committed Nov 16, 2024
1 parent 4c44dd5 commit f1259df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async function runTranslate(
)
}

lines.push(`> ${escapeAllMarkdown(res.text)}`)
lines.push(`> ${escapeAllMarkdown(res.text).replaceAll(/\n/g, '\n> ')}`)

if (res.pronunciation) {
lines.push(`> -# ${res.pronunciation}`)
Expand Down

0 comments on commit f1259df

Please sign in to comment.