tnichols217 / obsidian-columns

GNU General Public License v3.0
200 stars 9 forks source link

[BUG: Internal] Adding bullet point to last column creates new column #29

Closed samur-netizen closed 2 years ago

samur-netizen commented 2 years ago

Describe the bug

I have two column-block:

```col-md
First Column
- Some Text

Second Column Some Text


It renders properly:
![CleanShot 2022-06-23 at 15 39 32](https://user-images.githubusercontent.com/58331037/175313011-9a042a17-3ca0-4cc7-9aed-7d8898d55b17.png)

Now I set Some Text in Second Column as bullet point:
````col
```col-md
First Column
- Some Text

Second Column

It doesn't render properly. For that bullet point it creates third column: CleanShot 2022-06-23 at 15 41 00

System Info

OS: macOS Monterey Obsidian Version: v0.14.15 Plugin Version: v1.1.8

Additional information or notes

I checked it on default theme and the issue is the same.

tnichols217 commented 2 years ago

Add a col-md around your second column. If not, since paragraphs and lists are not the same item, you need to group them with a col-md block For example:

```col-md
First Column
- Some Text
Second Column
- Some Text
samur-netizen commented 2 years ago

It works thanks! But I have another issue if I want to add hilight for First Column and Second Column. Then the obsidian columns breaks showing error. The code to reproduce error is:

```col-md
==First Column==
- Some Text
==Second Column==
- Some Text
tnichols217 commented 2 years ago

what error exactly? I get this, but only because i have the dataview plugin enabled, which makes the equals sign an inline operator

image

tnichols217 commented 2 years ago

image Inside your dataview settings, you can change the Inline query prefix in order for dataview to not parse the line as an inline command: image

tnichols217 commented 2 years ago

Alternatively, you can start that line without an equals sign, such as with a hashtag or another letter

samur-netizen commented 2 years ago

You're right! It was because od Dataview. I changed its config for Inline Query Prefix and it works like a charm! Thanks!

tnichols217 commented 2 years ago

Glad I could help!