@bawigga
Thank you for fixing that bug for me.(:
I got another problem for Japanese(or Chinese).
Checkbox doesn't work with Japanese (or Chinese) headline.
For example,
I add text "[] tasks1".
I add japanese headline like "## 見出し" next line
Checkbox doesn't work, because the html will be
"<a href="#"></a>[] task1 " not "[]tasks1"
It's in the specifications of nvALT.
I think you don't need fix it, because it affect only for Japanese(or Chinese)
If you have solution this problem.
I would like to help me.
I've solved this issue.
Add the replace code.
body.innerHTML = body.innerHTML
// action
.replace(/\[\](.+)\s@action/gi, '<gtd class="gtd-action"><span class="fa fa-square-o"></span> $1</gtd>')
// for japanese
.replace(/<a href=\"#\">(\s)*<\/a>/gi, '[]')
I don't know this solution is good.
but, I can use checkbox with japanese headline.
thank you.
body.innerHTML = body.innerHTML
// for japanese
.replace(/<a href=\"#\">(\s)*<\/a>/gi, '[]')
// action
.replace(/\[\](.+)\s@action/gi, '<gtd class="gtd-action"><span class="fa fa-square-o"></span> $1</gtd>')