I have weekly Journal which I display weekly calendar. I have monthly Journal which I also display monthly calendar. I will highlight/input some event in my weekly calendar. Currently, I will need to maintain/update the same event in my monthly calendar. If I can stack up the Weekly Calendar to display Monthly Calendar, I can do away the maintenance of the Monthly Calendar.
For example, in Week 45, I have update an Event 1 on Wednesday, 01 November, in the November Week 45.md. I will need to do the same to update November Month.md.
Is there a way, to stack up, using Transclusion, the Weekly Calendar to show as Monthly Calendar?
If stack up with blank line, it will display each Weekly Calendar, with header. If I stack up without blank line in between, it has the header and the alignment code in between.
Is there a way, to stack up the Weekly Calendar (disable some header rows) so that it looks like the Monthly Calendar?
Well, it’s possible with CSS, at least for the case with no linefeeds between the transcluded files. One could come up with some CSS for the “with linefeeds” case, but it’s a lot more difficult: Without the headers, the table rows all have differing widths.
That looks horrible, I know. But it seems to work in DT on Ventura, i.e. with a relatively recent WebKit. The CSS relies von the :has funciton to find those table elements having at lest two tbody children. That’s the case for the “no linefeeds” transclusion.
It then defines a rule for all tbody elements but the first one (tbody:nth-of-type(2)…tbody-nth-of-type(5)), namely to turn the display for their first two tr children off. Those are the pseudo headings and the useless :--: rows.
Here, & is the CSS nesting operator. It’s not strictyl necessary here, but I used it to break up the whole selector chain. Without &, it would look like this:
Interesting. I’m on Ventura 13.5.1, same DT, same hardware. CSS nesting is available sind Safari 16.5, according to caniuse.com. And on Ventura 13.5.1, I have Safari 16.6.
Eventually, it’ll work as everywhere else. But it’s only syntactic sugar, anyway.
That works the same way on macOS as on iOS. So you probably have something somewhere in your MD files that throws the whole thing off.
What you might do to figure it out: convert the MD to HTML on macOS and show the HTML (as code, not a screenshot, please). And also show the settings for your DTTG/CSS.
I’m sorry. When I read your post, I was on an iPhone and didn’t scroll down to see the style element at the bottom of the MD.
Now I took the HTML you posted, added the missing html and head elements at the top and synced it to my iPad. Where looks exactly the same as on macOS.
As has been noted many times, DEVONthink To Go ≠DEVONthink nor is macOS ≠iOS / iPadOS. The underlying technologies are not the same in many cases and this also includes the text engine in our apps. Also, our text engine in DEVONthink To Go is still new and evolving. Please bear those things in mind.
DEVONthink To Go inserted transcluded text with newlines. The next version will no longer do this but just replace the placeholder with the transcluded text.