advanced-tables-obsidian
advanced-tables-obsidian copied to clipboard
Add a toggle to only add spaces to match formatted result in live preview
Is your feature request related to a problem? Please describe.
This issue is somewhat related to #145 in that it pertains to the way live preview hides formatting characters such as *
, **
, or [[
. With obsidian 0.14.2 introducing table rendering in live preview, most of those issues have been resolved.
However, when editing the table and using internal links with changed display text (or external links in general), then the columns have a tendency to get wildly mismatched because 20+ characters get removed when the formatting characters get hidden.
Describe the solution you'd like I would like a toggle in the options menu to fill spaces up to the width of the formatted object (rather than the raw text) when editing the table.
This would make working with links inside tables much easier, and prevent tables from being unnecessarily wide.
Seeing as the formatting characters are only shown when the cursor is over the object itself, it seems more logical to scale the table to the formatted width (which is more often and consistently displayed), rather than the unformatted width which is only visible one area at a time.
Describe alternatives you've considered The current system is usable, but difficult to work with if using several links within a table
Additional context Here is a screenshot showing how misaligned the columns can be when using links with custom display text. Pay attention to row 6, and see how the final column is dragged significantly further out than it needs to be, as well as that row's final column being very misaligned with the rest of them.
Although it is a smaller issue, notice also that every item in the 2nd column is misaligned with the header as they all are internal links (with no custom display text)
Live Preview
Source Mode
Just wanted to bump this up. I know it's probably not a very high priority, but having properly aligned tables when they contain formatting would be super nice.
Hey, sorry for the delay. I think this is a pretty interesting suggestion and could be a good way to solve this issue. It would need to be plumbed through to the underlying md-advanced-tables library which does the actual heavy lifting for this plugin, but that should be achievable.
I'm not sure when I will be able to do this, but I do support pursuing it if anyone wants to take a pass at it.
I've been thinking about problem for a while and have investigated the underlying library. I think I know how to pull it off, so maybe this will finally be the kick that gets me to do it.