sublime-evernote
sublime-evernote copied to clipboard
Checkboxes styling problem
In Sublime Text:
In Evernote Mac client:
HTML from exported note:
<ul>
<li>No checkboxes 1</li>
<li>No checkboxes 2</li>
<li style="list-style-type: none;"><en-todo/>Checkboxes 1</li>
<li style="list-style-type: none;"><en-todo/><p>Checkboxes 2</p></li>
<li style="list-style-type: none;"><en-todo checked="true"/><p>Checkboxes checked 1</p></li>
<li style="list-style-type: none;"><en-todo checked="true"/>Checkboxes checked 2</li>
</ul>
This is an issue with the markdown2.py library being used. The problem is on line 1526:
if item[0:4] in ["[ ] ", "[x] "]:
start_tag = '%s><en-todo%s/' % \
(' style="list-style-type: none;"' if marker in "+-*" else '',
' checked="true"' if item[1] == 'x' else '')
item = item[4:]
Removing the style attribute fixes the format. This may be as simple of a fix as updating the markdown library, but I am not familiar enough with the codebase to know the dependencies on the current version. Looking at the projects section, it looks like plans to migrate the markdown library are already underway.