KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
784 stars 67 forks source link

Allow CSS to add content on the side of the markdown-sizer #502

Open Nydid opened 6 days ago

Nydid commented 6 days ago

Is your feature request related to a problem? Please describe. I've been trying to make a Wikipedia like page and tried using Wikipedia Infoboxes.

They render fine in Obsidian but upon export, the CSSed Callout gets pushed in by what seems to be a markdown-sizer in the exporter.

Obsidian: image

HTML: image

Describe the solution you'd like A way to bypass the resizer so we can add information outside the default resizer

Describe alternatives you've considered Looking into bypassing the resizer using the "Feature Placement" included in the settings. Somehow bypassing sizerElement from webpage.ts

Additional context Add any other context or screenshots about the feature request here.

KosmosisDire commented 6 days ago

This kind of css very much relies on assumptions about the html and css of obsidian. I try to mimic that as closely as possible but it's impossible to get it perfect. If you can send me a small reproduction vault (or instructions to create this exact setup) I will take a look and see if there is an easy tweak to the css I can make that will allow this to work.

Nydid commented 5 days ago

This kind of css very much relies on assumptions about the html and css of obsidian. I try to mimic that as closely as possible but it's impossible to get it perfect. If you can send me a small reproduction vault (or instructions to create this exact setup) I will take a look and see if there is an easy tweak to the css I can make that will allow this to work.

A probably easier alternative is to allow the resizing of the markdown-sizer width by the user. (Changing the "Readable line length" like in Obsidian settings) image

KosmosisDire commented 5 days ago

You can change the line width in the plugin settings (although not in the beta since I am still finishing the new settings page)