From 39acb2a4be8f133b8ff011458dc84475795987ce Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Thu, 29 Jan 2026 14:27:55 +0100 Subject: [PATCH] Render MD in pipeline titles (#5999) Co-authored-by: 6543 <6543@obermui.de> --- web/src/components/atomic/RenderMarkdown.vue | 3 ++- web/src/components/pipeline-feed/PipelineFeedItem.vue | 8 +++++++- web/src/components/repo/RepoItem.vue | 10 ++++++++-- web/src/components/repo/pipeline/PipelineItem.vue | 9 +++++---- web/src/views/repo/pipeline/PipelineWrapper.vue | 10 +++++++--- 5 files changed, 29 insertions(+), 11 deletions(-) diff --git a/web/src/components/atomic/RenderMarkdown.vue b/web/src/components/atomic/RenderMarkdown.vue index df3a60be6..8b7524aeb 100644 --- a/web/src/components/atomic/RenderMarkdown.vue +++ b/web/src/components/atomic/RenderMarkdown.vue @@ -9,10 +9,11 @@ import { computed } from 'vue'; const props = defineProps<{ content: string; + inline?: boolean; }>(); const contentHTML = computed(() => { - const dirtyHTML = marked.parse(props.content); + const dirtyHTML = props.inline ? marked.parseInline(props.content) : marked.parse(props.content); return DOMPurify.sanitize(dirtyHTML as string, { USE_PROFILES: { html: true } }); }); diff --git a/web/src/components/pipeline-feed/PipelineFeedItem.vue b/web/src/components/pipeline-feed/PipelineFeedItem.vue index 6d3d79f8d..d761571bc 100644 --- a/web/src/components/pipeline-feed/PipelineFeedItem.vue +++ b/web/src/components/pipeline-feed/PipelineFeedItem.vue @@ -12,7 +12,12 @@ {{ repo?.owner }} / {{ repo?.name }} - {{ shortMessage }} +
@@ -31,6 +36,7 @@ import { computed, toRef } from 'vue'; import Icon from '~/components/atomic/Icon.vue'; +import RenderMarkdown from '~/components/atomic/RenderMarkdown.vue'; import PipelineStatusIcon from '~/components/repo/pipeline/PipelineStatusIcon.vue'; import usePipeline from '~/compositions/usePipeline'; import type { PipelineFeed } from '~/lib/api/types'; diff --git a/web/src/components/repo/RepoItem.vue b/web/src/components/repo/RepoItem.vue index 7ee56a6e7..129a58a48 100644 --- a/web/src/components/repo/RepoItem.vue +++ b/web/src/components/repo/RepoItem.vue @@ -25,7 +25,12 @@