sublime-evernote icon indicating copy to clipboard operation
sublime-evernote copied to clipboard

Checkboxes styling problem

Open astyagun opened this issue 8 years ago • 1 comments

In Sublime Text: evernote__checkboxes_test

In Evernote Mac client: _ _evernote

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>

astyagun avatar Jan 26 '17 12:01 astyagun

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.

jhoward321 avatar Feb 23 '17 19:02 jhoward321