silverbullet icon indicating copy to clipboard operation
silverbullet copied to clipboard

Blank space above tables

Open zamuz opened this issue 1 year ago • 4 comments

When rendering a table, a sizable blank space is added on top:

https://github.com/silverbulletmd/silverbullet/assets/731751/84728914-f343-4c3a-afb3-ecb1080dc548

zamuz avatar Mar 05 '24 23:03 zamuz

Right, yeah I can replicate this. Not good.

zefhemel avatar Mar 06 '24 19:03 zefhemel

@zefhemel

Can you please try this in one page?

I see the space in such tables:


# Vector & Linked List Operations

| Data Structure | Method        | Time Complexity | Space Complexity | Description                                                   |
|----------------|---------------|-----------------|------------------|---------------------------------------------------------------|
| `Vec<T>`       | `new()`       | O(1)            | O(1)             | Creates a new empty vector.                                   |
|                | `push(value)` | Amortized O(1)  | O(1)             | Adds an element to the end of the vector.                     |
|                | `pop()`       | O(1)            | O(1)             | Removes the last element from the vector and returns it.      |
|                | `get(index)`  | O(1)            | O(1)             | Returns a reference to the element at the specified index.    |

| Data Structure    | Method             | Time Complexity     | Space Complexity    | Description                                                   |
|-------------------|--------------------|---------------------|---------------------|---------------------------------------------------------------|
| `VecDeque<T>`     | `new()`            | O(1)                | O(1)                | Creates a new empty double-ended queue.                      |
|                   | `push_front(value)`| Amortized O(1)      | O(1)                | Inserts an element at the front of the deque.                |
|                   | `push_back(value)` | Amortized O(1)      | O(1)                | Inserts an element at the back of the deque.                 |
|                   | `pop_front()`      | O(1)                | O(1)                | Removes and returns the first element of the deque.          |
|                   | `pop_back()`       | O(1)                | O(1)                | Removes and returns the last element of the deque.           |
| `LinkedList<T>`   | `new()`            | O(1)                | O(1)                | Creates a new empty linked list.                             |
|                   | `push_front(value)`| O(1)                | O(1)                | Inserts an element at the beginning of the list.             |
|                   | `push_back(value)` | O(1)                | O(1)                | Inserts an element at the end of the list.                   |
|                   | `pop_front()`      | O(1)                | O(1)                | Removes and returns the first element of the list.           |
|                   | `pop_back()`       | O(1)                | O(1)                | Removes and returns the last element of the list.            |

image

Thanks

paletochen avatar Mar 18 '24 16:03 paletochen

+1

Deishelon avatar May 08 '24 04:05 Deishelon

+1, i was able to solve this by removing all extra spaces. Seems that having extra spaces in the markdown table for visual spacing causes the rendered table to move further down

Atticus-Withakay avatar May 15 '24 21:05 Atticus-Withakay