This change adds support for Markdown rendering, via the showdown library. I've added a new field to each TODO item, called contentHtml, which is the result of rendering the raw item content field to HTML. The MMM-Todoist.js file will pull this contentHtml and unwrap the outer \<p> tag, which showdown inserts, in order to arrive at the final text to display.
Additionally, I tend to use a pure-priority listing for my TODOs, so I've added a new sortType called simply 'priority'. README.md has been updated accordingly as well.
I've had to adjust package.json and package-lock.json to include showdown, which also included changes to other package versions.
This change adds support for Markdown rendering, via the showdown library. I've added a new field to each TODO item, called contentHtml, which is the result of rendering the raw item content field to HTML. The MMM-Todoist.js file will pull this contentHtml and unwrap the outer \<p> tag, which showdown inserts, in order to arrive at the final text to display.
Additionally, I tend to use a pure-priority listing for my TODOs, so I've added a new sortType called simply 'priority'. README.md has been updated accordingly as well.
I've had to adjust package.json and package-lock.json to include showdown, which also included changes to other package versions.