Open chlorophilo opened 1 year ago
Can this be solved by embedding a note that you want referenced into a "scene"?
By embedding do you mean transcluding (i.e. ![...]
)? If so, not without a new compile step that copies over the transcluded note, tracked in #90
That idea would be great if it could be implemented. One thing I have found, though, when trying to embed one note in another in Obsidian is that you end up with a vertical line along the left hand side of the transcluded note, and the note is not flush with the left margin. So, if an additional compile step was added then it would need to address these formatting issues.
I know exactly what you're talking about, but that can be changed through your theme or custom css snippets.
Unfortunately I would not know where to begin in pulling any custom coding together, even in CSS. I have used other people's snippets before, but not drafted my own.
Longform's other functionality - eg the easy reordering of scenes - mean that my preferred solution would be for embedding/transcluding to occur within Longform But if you know of a relevant snippet do please share.
a vertical line along the left hand side of the transcluded note, and the note is not flush with the left margin
that can be changed through your theme or custom css snippets
other people's snippets
@chlorophilo, here is CSS I use to make embedded notes appear flush and inline:
/*! customize Obsidian Note Embed */
@media screen, print {
/* To remove excess negative space around embedded content */
body {
--embed-background: inherit;
--embed-border-left: none;
--embed-padding: 0;
--embed-font-style: inherit;
}
/* To hide file name of embedded content */
.markdown-embed-title {
display: none;
}
}
Update: I streamlined it and updated it to work on PDF export based on an obsidian forum message.
Update: To also hide the names of the files, add
.markdown-embed-title { display: none; }
.
I use Obsidian (macOS) Version 1.5.3 (Installer 1.4.16).
Describe the solution you'd like I use Longform for technical writing projects built from parts, some of which I would like to incorporate into more than one project. I don't want to have to duplicate notes between projects to achieve this purpose as I would end up having to amend all the duplicates to replicate any amendments I make over time. There should be just one version of the note that needs to be amended, and those amendments should then appear in all compiled projects incorporating that note.
Describe alternatives you've considered I have thought of two possibilities: