Skip to content

Commit

Permalink
Render description as markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb-T-Owens committed Jan 24, 2025
1 parent 2e9c72a commit 16942c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import LinkButton from '@gitbutler/ui/LinkButton.svelte';
import Textarea from '@gitbutler/ui/Textarea.svelte';
import AvatarGroup from '@gitbutler/ui/avatar/AvatarGroup.svelte';
import Markdown from '@gitbutler/ui/markdown/Markdown.svelte';
import toasts from '@gitbutler/ui/toasts';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
Expand Down Expand Up @@ -174,7 +175,7 @@
>
</div>
{:else if branch.description}
<p class="text-13">{branch.description}</p>
<Markdown content={branch.description} />
<div>
<Button kind="outline" onclick={editSummary}>Change summary</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
WebRoutesService,
type ProjectReviewCommitParameters
} from '@gitbutler/shared/routing/webRoutes.svelte';
import Markdown from '@gitbutler/ui/markdown/Markdown.svelte';
import { goto } from '$app/navigation';
const BRANCH_TITLE_PLACE_HOLDER = 'No branch title provided';
Expand Down Expand Up @@ -108,7 +109,7 @@
</div>

<p class="review-main-content-description">
{patch.description?.trim() || DESCRIPTION_PLACE_HOLDER}
<Markdown content={patch.description?.trim() || DESCRIPTION_PLACE_HOLDER} />
</p>

<ReviewInfo {patch} />
Expand Down

0 comments on commit 16942c9

Please sign in to comment.