We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61046a8 commit 8acaa1fCopy full SHA for 8acaa1f
src/report.ts
@@ -78,11 +78,32 @@ function formatDiff(diff: string) {
78
const linesCount = diff.split("\n").length;
79
const code = codeBlock(diff, "diff");
80
return linesCount > LONG_DIFF_THRESHOLD_IN_LINES
81
+ // Note: do not indent the code block, otherwise the diff render incorrectly in comments.
82
+ /*
83
+ ``````md
84
+ ```diff
85
+ - this is not remove
86
+ ```
87
+ ``````
88
+
89
+ and
90
91
92
93
94
95
96
97
98
+ are different
99
+ */
100
101
? outdent`
102
<details>
103
<summary>Diff (${linesCount} lines)</summary>
104
- ${code}
105
106
+ ${code}
107
108
</details>
109
`
0 commit comments