mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-20 02:34:12 +00:00
Html component changed back to Markdown. Markdown logic now accounts for if the value is an empty string.
This commit is contained in:
parent
2094a4d4b8
commit
feb98a5ac7
2 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@
|
|||
span.text {{ $t('delete') }}
|
||||
|
||||
.task-notes.small-text(
|
||||
v-html="task.notes",
|
||||
v-markdown="task.notes",
|
||||
:class="{'has-checklist': task.notes && hasChecklist}",
|
||||
)
|
||||
.checklist(v-if="canViewchecklist", :class="{isOpen: !task.collapseChecklist}")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import habiticaMarkdown from 'habitica-markdown';
|
|||
export default function markdown (el, {value, oldValue}) {
|
||||
if (value === oldValue) return;
|
||||
|
||||
if (value) {
|
||||
if (value || value === '') {
|
||||
el.innerHTML = habiticaMarkdown.render(String(value));
|
||||
}
|
||||
el.classList.add('markdown');
|
||||
|
|
|
|||
Loading…
Reference in a new issue