Skip to content

Commit

Permalink
Fix Markdown rendering in descriptions
Browse files Browse the repository at this point in the history
Fix Markdown rendering of descriptions on objective, key result, and
measurement detail pages.
  • Loading branch information
simenheg committed Nov 1, 2023
1 parent 32e6ce6 commit 17d1428
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ All notable changes to this project will be documented in this file. The format
- New key results are now given a start value of 0, a target value of 100, and
percentage as unit of measurement by default.

### Fixed

- Fixed Markdown rendering of descriptions on objective, key result, and
measurement detail pages.

### Security

- More security headers are now set: `Content-Security-Policy`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/KpiDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<HTML-output
v-if="kpi.description"
class="mb-size-32 pkt-txt-16-light"
class="mb-size-32 pkt-txt-16-light md"
:html="kpi.description"
/>

Expand Down
6 changes: 3 additions & 3 deletions src/views/Item/ItemAbout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
</header>

<section>
<HTML-output class="pkt-txt-24-light" :html="activeItem.missionStatement" />
<HTML-output class="pkt-txt-24-light md" :html="activeItem.missionStatement" />
</section>

<section v-if="activeItem.targetAudience">
<h2 class="pkt-txt-30">{{ $t('dashboard.targetAudience') }}</h2>
<HTML-output class="pkt-txt-18" :html="activeItem.targetAudience" />
<HTML-output class="pkt-txt-18 md" :html="activeItem.targetAudience" />
</section>

<section v-if="children">
Expand All @@ -30,7 +30,7 @@
class="item-info__box item-info__box--link"
>
<h3 class="pkt-txt-24">{{ child.name }}</h3>
<HTML-output class="pkt-txt-18" :html="child.missionStatement" />
<HTML-output class="pkt-txt-18 md" :html="child.missionStatement" />
</div>
</section>

Expand Down
1 change: 1 addition & 0 deletions src/views/KeyResultHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</div>
<HTML-output
v-if="activeKeyResult.description"
class="md"
:html="activeKeyResult.description"
/>
</header>
Expand Down
1 change: 1 addition & 0 deletions src/views/ObjectiveHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<div class="objective__description">
<HTML-output
v-if="activeObjective.description"
class="md"
:html="activeObjective.description"
/>
<div
Expand Down

0 comments on commit 17d1428

Please sign in to comment.