Hi (first post: love the app!)
One of the reasons I chose Trunk was that it stored its files as plaintext/markdown in dropbox
giving me the chance to edit files from the desktop and/or iPad/iPhone - whatever I have available.
And it works (as long as I leave the metadata alone). I've used vi and TextEdit from Linux and OSX
without any issues. Flushed with success I bought MultiMarkdown Composer (MMDC) - a "proper"
and rather nice markdown editor and immediately ran into some problems with sync.
After some experimentation I boiled it down to this:
1. Create note "ABC" (v1) in Trunk and sync.
2. Edit "ABC" (now v2) in MMDC from the Mac and sync.
3. I see trunk downloading "ABC" (v2)
4. I look at all the notes in Trunk and I see a duplicate file:
" ABC" (v2) - the second version has some spaces on the front of the file name.
5. Things are now broken but if I sync Trunk again " ABC" (v2) is pushed up to dropbox and I have dupes everywhere.
What I think is happening is that MMDC is reformatting the metadata at the top of the Trunk
note. It's not overtly corrupting it but is messing with the tabbing/spacing after the colon
in each metadata field.
My hypothesis is that this confuses Trunk into thinking it's got a new note (from the
metadata title) - one with spaces on the front of the text, typically 2.
There are some obtuse options in MMDC to change how it (but not stop it) modifying
"tabs are 4 spaces" == off
"align metadata with tabs" == off
I don't know if both options are required but this seems to be enough to stop the
problem (once you've flushed away all the broken files from ALL devices).
Anyway, I'm not sure whose problem it is - but this seems to be a fix.