Saturday, July 6th 2024, 2:49 am
Issue: Image centering on Obsidian doesn’t translate to centering on website because custom css doesn’t transfer to the site. Conversely img tag on Obsidian doesn’t show the image.
Several steps to ensure all images pasted are centered properly
- Edit the
links.ts
file in a way that the crawl function wraps anyimg
,video
,audio
,iframe
usingcenter
HTML tags. The code is linked to links-ts file - There was some functionality added so that the wrapping prevented an infinite recursion as well
- Change
Files and links -> New link format -> Relative path
. Shortest path at this time glitches and doesn’t work. But relative path works.