Html component changed back to Markdown. Markdown logic now accounts for if the value is an empty string.

This commit is contained in:
Jose Garay 2019-05-14 19:06:22 -07:00
parent 2094a4d4b8
commit feb98a5ac7
2 changed files with 2 additions and 2 deletions

View file

@ -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}")

View file

@ -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');