ndbeals / keep-exporter

A command line utility to export Google Keep notes to markdown.
https://pypi.org/project/keep-exporter/
BSD 3-Clause "New" or "Revised" License
96 stars 1 forks source link

Format checkboxes in markdown syntax #3

Closed mbafford closed 3 years ago

mbafford commented 3 years ago

Currently the checkboxes come across as unicode check/uncheck squares, would be nice to have them formatted in Markdown format:

I tested this rough version locally:

Before frontmatter.Post:

text = note.text
text = text.replace('☑ ', '- [X] ')
text = text.replace('☐ ', '- [ ] ')
return frontmatter.Post(text, handler=None, **metadata)
ndbeals commented 3 years ago

Functionality added in pull request #5. Closed