Skip to content

Commit 3fa2c26

Browse files
committed
コードブロックで囲う
1 parent 084cee1 commit 3fa2c26

File tree

1 file changed

+4
-1
lines changed
  • packages/uplim-info-gmail/src

1 file changed

+4
-1
lines changed

packages/uplim-info-gmail/src/main.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ function main() {
2323
const cutText =
2424
text.length > 2000 ? `${text.substring(0, 1995)}...` : text;
2525

26+
// biome-ignore lint/style/useTemplate: エスケープめっちゃ必要でむしろ読みにくくなるので
27+
const codeBlock = "```\n" + cutText + "\n```";
28+
2629
postMessage({
2730
username: "info@uplim.co.jp",
2831
parse: "full",
2932
avatar_url:
3033
"https://cdn.discordapp.com/attachments/792765244040675389/921661726863282176/pngegg.png",
31-
content: cutText,
34+
content: codeBlock,
3235
});
3336
}
3437

0 commit comments

Comments
 (0)