mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
* Task notes now disappear when they are deleted from the main task. * Html component changed back to Markdown. Markdown logic now accounts for if the value is an empty string. * if-else statement to be sure that the markdown library doesn't create issues with empty strings.
This commit is contained in:
commit
bcf304984d
1 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,9 @@ export default function markdown (el, {value, oldValue}) {
|
|||
|
||||
if (value) {
|
||||
el.innerHTML = habiticaMarkdown.render(String(value));
|
||||
} else {
|
||||
el.innerHTML = '';
|
||||
}
|
||||
|
||||
el.classList.add('markdown');
|
||||
}
|
||||
Loading…
Reference in a new issue