cbrooker / MMM-Todoist

This is an extension for the MagicMirror2 platform. It will display your Todoist todos on your MagicMirror.
MIT License
151 stars 58 forks source link

Add Markdown formatting support, priority sorting #82

Closed jdcasey closed 3 years ago

jdcasey commented 4 years ago

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.

jdcasey commented 4 years ago

@cbrooker is there any chance of getting a code review or merge on this?