mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Client Tasks (#8889)
* tasks: markdown style, checkboxes. Misc fixes * add filtering to tasks * client tasks: complete filtering
This commit is contained in:
8
website/client/directives/markdown.js
Normal file
8
website/client/directives/markdown.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import habiticaMarkdown from 'habitica-markdown';
|
||||
|
||||
export default function markdown (el, {value, oldValue}) {
|
||||
if (value === oldValue) return;
|
||||
|
||||
el.innerHTML = habiticaMarkdown.render(value);
|
||||
el.classList.add('markdown');
|
||||
}
|
||||
Reference in New Issue
Block a user