File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
docusaurus/scripts/strapi-release-analyzer Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,20 @@ function generateMarkdownReport(releaseInfo, analyses) {
452452 if ( change . suggestedContent ) {
453453 markdown += `- [ ] Add/update content (see below)\n\n` ;
454454 markdown += `<details>\n<summary>💡 Suggested content</summary>\n\n` ;
455- markdown += `\`\`\`markdown\n${ change . suggestedContent } \n\`\`\`\n\n` ;
455+
456+ const hasCodeBlock = change . suggestedContent . includes ( '```' ) ;
457+
458+ if ( hasCodeBlock ) {
459+ markdown += `${ change . suggestedContent } \n\n` ;
460+ } else {
461+ const lines = change . suggestedContent . split ( '\n' ) ;
462+ markdown += `> **Content to add/update:**\n>\n` ;
463+ lines . forEach ( line => {
464+ markdown += `> ${ line } \n` ;
465+ } ) ;
466+ markdown += `\n` ;
467+ }
468+
456469 markdown += `</details>\n\n` ;
457470 } else {
458471 markdown += `\n` ;
You can’t perform that action at this time.
0 commit comments