diff --git a/source/commands/utils/reporting.ts b/source/commands/utils/reporting.ts index 91f586f2f..b7ce65a29 100644 --- a/source/commands/utils/reporting.ts +++ b/source/commands/utils/reporting.ts @@ -1,7 +1,7 @@ import { DangerResults } from "../../dsl/DangerResults" export const markdownCode = (string: string): string => ` -\`\`\`sh +\`\`\` ${string} \`\`\` ` diff --git a/source/commands/utils/runDangerSubprocess.ts b/source/commands/utils/runDangerSubprocess.ts index 65bb49b81..9c21fa7cd 100644 --- a/source/commands/utils/runDangerSubprocess.ts +++ b/source/commands/utils/runDangerSubprocess.ts @@ -127,7 +127,8 @@ export const runDangerSubprocess = ( d(`Handling fail from subprocess`) process.exitCode = code - const failResults = resultsWithFailure(`\`${processDisplayName}\` failed.`, "### Log\n\n" + markdownCode(allLogs)) + const moreMarkdown = "### Log\n\n
\n\n" + markdownCode(allLogs) + "\n\n
\n" + const failResults = resultsWithFailure(`\`${processDisplayName}\` failed.`, moreMarkdown) if (results) { results = mergeResults(results, failResults) } else {