This is really too long to read unless you REALLY care about the topic.
I went back to review in order to answer @brookter. The actual situation is heavily nuanced and I have not been able to explore every use case. But I share my incomplete findings with you all in the hope that someone can assist and that I can return to my normal life for the evening.
To re-cap: For various reasons I recentlly shifted my workflows from using BBEdit as my primary markdown editor to IA Writer. Ideally, I sacaficed a little what BBEdit offers to reach parity between my Mac and my iPad. Results are mostly good.
I have moved entirely to an indexed model, where all of my files are outside of DEVONthink but are indexed in DEVONthink databases. My intention is to use DEVONthink to search/read/navigate through my notes, but use external editors to actually edit them. (Editors for markdown/pdf/rtf are always going to be better than DEVONthink, that’s not their core competancy. I like their core compentancy and hope that they stay focused there.
One final caveat: I am not a real web designer, I pretend to be one late at night, alone. You’re going to find ways to improve this and I cheerfully expect that.
One huge challenge with editing markdown is representing images. I’ve got an 80% solution working, but it’s got some issues. Here we go.
My screenshots are too big to share, so first I want to describe my test.md document and share the custom stylsheet I use.
My test document has a whole bunch of lorem ipsum to provide a place to instert the documents. You can make your own. My test image is in an “img” subdirectory alongside the markdown.
Here are the relevant parts of the stylsheet:
.s_c {
margin: 10px;
margin-left: auto;
margin-right: auto;
width: 20%;
height: auto;
}
.s_l {
float: left;
width: 20%;
height: auto;
margin: 10px;
}
.s_r {
float: right;
width: 20%;
height: auto;
margin: 10px;
}
.m_c {
margin: 10px;
margin-left: auto;
margin-right: auto;
width: 45%;
height: auto;
}
.m_l {
float: left;
width: 45%;
height: auto;
margin: 10px;
}
.m_r {
float: right;
width: 45%;
height: auto;
margin: 10px;
}
.lg {
width: 100%;
height: auto;
margin: 10px;
margin-left: auto;
margin-right: auto;
}
“s_c” is small centered, “m_l” is medium left-side, “lg” is large centered, you get it.
Okay, in this scenario we have DEVONthink on the Mac, DEVONthink To Go on the iPad, and IA Writer on both as well. At this point, I have (almost) everything working on every platform but for IA Writer on iOS where the images are not showing. (And I could swear I saw that work before I made the jump to this new workflow, but it’s not displaying any images right now. Maybe someone can help me with that. )
3 out of 4 ain’t bad.
I use spans for left and right floaters and divs for centered images. I also use both simple images and figures with captions. Everything is working on every platform but IA Writer iOS…but I think it should be possible. The problem seems to be with the referenced files. Everything is stored on iCloud and indexed in DEVONthink.
There are some weird caveats, which probably indicate bugs in the DEVONthink render-er. Let’s go into them:
- First know that IA Writer on the Mac is generally more forgiving that DEVONthink. IA Writer will render things that DEVONthink won’t. But there are workarounds.
- For simple images, I’ll use something like
<span class="m_l"></span> and you will get nothing in DEVONthink (Works okay in IA Writer). BUT, if you preceed the first such spanned image with a blank line, all the following spans and divs will render fine in DEVONthink, and show up on DTTG on iOS as well. Even if they are completely in-line with the page body.
- Sadly the big fail here is IA Writer on iOS which doesn’t display the referenced files at all. (Again, I could swear I saw it work at some point. I’ll keep at it.)
- A final note as I turn to my real life: my “lg” class is broken. It is supposed to show an image full-width, instead it is full-sized and left-aligned, although in a figure the caption is centered in the window. I haven’t figured that out yet, but the water heater is leaking so I need to turn to that.
Thanks everyone for the great forum and contributions, I’m sure that we can figure this stuff out.