diff --git a/.changeset/witty-garlics-tap.md b/.changeset/witty-garlics-tap.md new file mode 100644 index 000000000..20c44e202 --- /dev/null +++ b/.changeset/witty-garlics-tap.md @@ -0,0 +1,6 @@ +--- +'@roadiehq/backstage-plugin-github-insights': patch +--- + +The `MarkdownContent` component currently removes only single line comments if `preserveHtmlComments` is not set. +This change accounts for single line and multiline HTML comments diff --git a/plugins/frontend/backstage-plugin-github-insights/src/components/Widgets/MarkdownContent/MarkdownContent.tsx b/plugins/frontend/backstage-plugin-github-insights/src/components/Widgets/MarkdownContent/MarkdownContent.tsx index d29a50d48..23ff07656 100644 --- a/plugins/frontend/backstage-plugin-github-insights/src/components/Widgets/MarkdownContent/MarkdownContent.tsx +++ b/plugins/frontend/backstage-plugin-github-insights/src/components/Widgets/MarkdownContent/MarkdownContent.tsx @@ -86,7 +86,7 @@ const GithubFileContent = (props: MarkdownContentProps) => { let content = value.content; if (!preserveHtmlComments) { - content = content.replace(//g, ''); + content = content.replace(//g, ''); } return (