tgrosinger / advanced-tables-obsidian

Improved table navigation, formatting, and manipulation in Obsidian.md
GNU General Public License v3.0
2.15k stars 80 forks source link

Identation not working properly #285

Closed Oxey405 closed 1 year ago

Oxey405 commented 1 year ago

Describe the bug In markdown, the length of a piece of text doesn't necessarily represent the size of the string displayed on screen. For example, bold text (with **) adds 4 characters to the length of the raw string. This makes identation when creating a table looks buggy and adds too much space.

To Reproduce Steps to reproduce the behavior:

  1. Open any obsidian file
  2. Create a table
  3. In one of the cells, put a bold or italic text or a link with a custom display text
  4. Press "enter" to add a new column and auto-indent

Expected behavior Identation should work using how much characters are produced after the markdown compiler and not from raw markdown.

Screenshots (none to provide)

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

berisap commented 1 year ago

I noticed the same issue see screenshot at the bottom, it would be really cool if the markdown styling symbols would be regardet for in the identation.

image

| title                                                             |
| ----------------------------------------------------------------- |
| regular text                                                      |
| *italic text* notice bars are not aligned after pressing enter -> |
| regular text                                                      | 
tgrosinger commented 1 year ago

Duplicate of #145