This CSS is wonderful, but I must warn that it does cause some problems. If you have ‘Readable line length’ enabled in Obsidian’s settings, all embedded notes now have artifacts like the ones shown below. This is valid at least for the Ars Magna theme.
- I create notes that contain tables with certain characteristics defined in the frontmatter, and then embed those notes with tables in other notes. Tables should be shown extended, covering the full width of the note. As can be seen here, this feature is lost and the table is displayed compressed to one side of the note.
- In addition, these strange lines that appear in other transclusions of notes that do not contain tables can be observed.
In short, it causes problems in the transclusions, at least in the Ars Magna theme, as I previously stated. It would be very useful if this CSS were modified so that it affects ONLY the transclusions with the format .jpg, .mp4, etc., and not all the transclusions (ie, that an exception be defined for the .md notes that are embedded) . I would do it myself and share the code here if I knew more about CSS, but my abilities in that regard are very limited.