# Live Preview: improve vertical alignment of multiple paragraphs in lists

**URL:** <https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866>\
**Category:** Feature requests\
**Tags:** repro, valuable, live-preview\
**Created:** [March 12, 2022, 7:36am UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866 "2022-03-12T07:36:20Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![cool-RR](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cool-rr/32/26900_2.png) [@cool-RR](https://forum.obsidian.md/u/cool-RR)\
**Post date:** [March 12, 2022, 7:36am UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/1 "2022-03-12T07:36:20Z")

</div>

Context thread: [Multiple paragraphs in list item - #3 by CawlinTeffid](https://forum.obsidian.md/t/multiple-paragraphs-in-list-item/33714/3)

I’d like to have lists where each item has multiple paragraphs. This [works in CommonMark](https://spec.commonmark.org/dingus/?text=-%20foo%0A%20%20-%20bar%0A%20%20%20%20-%20baz%0A%0A%20%20%20%20%20%20bim%0A) but I can’t get it to be aligned in Live Preview.

![1](https://forum.obsidian.md/uploads/default/original/3X/6/0/6097c130590ef720de16c6c7d72939f65a9b812e.jpeg)

Here’s the source I used for the above: [gist:a557089197dc7a7265756c7fd4c49ae2 · GitHub](https://gist.github.com/cool-RR/a557089197dc7a7265756c7fd4c49ae2)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [March 12, 2022, 4:06pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/2 "2022-03-12T16:06:21Z")

</div>

The lines are aligned in reader mode. The editor is much more tricky to get it right essentially because it is a text editor that is faking some aspects of reader expirience.

If you care about perfect alignment in editor, you may have better luck using a monospace font.

---

<div class="post-metadata">

**Author:** ![cool-RR](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cool-rr/32/26900_2.png) [@cool-RR](https://forum.obsidian.md/u/cool-RR)\
**Post date:** [March 15, 2022, 6:32am UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/3 "2022-03-15T06:32:42Z")

</div>

So, we agree that it’s a bug, just a low priority?

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [March 15, 2022, 1:56pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/4 "2022-03-15T13:56:33Z")

</div>

This is complicated. From the user POV, this is a bug.  
From the dev POV, this is not a bug (as unexpected behavior).  
This is the nature of a plain text editor enhanced to fake aspects of preview.  
Unfortunately this aspect is hard to fake or even impossible.

I am gonna move this to Feature Requests.

---

<div class="post-metadata">

**Author:** ![cool-RR](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cool-rr/32/26900_2.png) [@cool-RR](https://forum.obsidian.md/u/cool-RR)\
**Post date:** [March 15, 2022, 2:11pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/5 "2022-03-15T14:11:46Z")

</div>

I understand, thank you.

---

<div class="post-metadata">

**Author:** ![NomarCub](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/bbe5ce/32.png) [@NomarCub](https://forum.obsidian.md/u/NomarCub)\
**Post date:** [September 15, 2022, 12:10pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/6 "2022-09-15T12:10:24Z")

</div>

It’s even worse with tabs. You have to up the tab size setting to 8 for them to even kind of match. But that indents code blocks way too much.

![image](https://forum.obsidian.md/uploads/default/original/3X/3/e/3ef197f64898095cb105eb8af584b9f8fa363813.png)

With tab size set to 8  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/c/8/c88905661b0965fa7371c390e6845697484e3df1.png)

I’ve had indent problems for a while now, and I thought they were fixed:

> [@Custom list indent width with indentation guides](https://forum.obsidian.md/t/custom-list-indent-width-with-indentation-guides/34828):
>
> I’d like live preview (and source view) to present nested list indented at least as deeply as reading view, preferably providing a setting for both that can be set to any custom amount. All this, while preserving indentation lines, that have been recently added to the core app. There have been numerous requests for this, [this one](https://forum.obsidian.md/t/greater-list-indent-and-indention-lines-in-live-preview/27722) being the most recent I found. However these all broke eventually. The answer accepted to this last one was a flawed hack that became more obsolete with v0.14. Even i…

> [@Multiline list item indents inconsistently after first line](https://forum.obsidian.md/t/multiline-list-item-indents-inconsistently-after-first-line/43085):
>
> This is how it should look: [image] This is how it actually looks: [image] Indentation in lists in live preview is sometimes off in the lines after the bullet. It happens sporadically, which makes it both annoying and hard to reproduce. It happens in my notes more frequently, but simplifying the repro text also made it appear less, so it’s probably related to note/list size/complexity, possibly live preview caching. Here’s my text for the repro: [Lorem ipsum dolor sit amet, consectetur adip…](https://pastebin.com/uMc1JB82)

Is this also fixed in 0.16.3 @WhiteNoise?

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [September 15, 2022, 2:01pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/7 "2022-09-15T14:01:05Z")

</div>

> [@NomarCub](#):
>
> It’s even worse with tabs. You have to up the tab size setting to 8 for them to even kind of match. But that indents code blocks way too much.

I don’t think this is like this. If you use `shift-enter` in a bullet list line, it will create a new line and add the appropriate number of tabs (or spaces if you use them) + 2 spaces. Try in the sandbox vault.  
The new paragraph will be perfectly aligned in **source mode with a monospace font**.  
There is a very slight misalignment in LP and this is what this FR is about.

---

<div class="post-metadata">

**Author:** ![NomarCub](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/bbe5ce/32.png) [@NomarCub](https://forum.obsidian.md/u/NomarCub)\
**Post date:** [September 15, 2022, 9:40pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/8 "2022-09-15T21:40:11Z")

</div>

I’ve never used the Shit + Enter hotkey in over 2 years of using Obsidian, and I would have a hard time remembering to do it in the future. If I don’t use this feature, the tab is way too small (and inconsistent), which is not a behaviour I am used to in any other editor and makes it hard to edit my notes in VSCode for example. 1 tab with no spaces is valid markdown and renders fine in live preview. Don’t make me have to use special hotkeys for basic indentation to work.  
Also, I really don’t want to mix tabs and spaces - and as long as Obsidian has other issues with indenting with spaces (aligning edit and reading view, [using 2 spaces](https://forum.obsidian.md/t/support-indentation-guides-for-all-tab-sizes-2-and-3-spaces/34344)), this solution necessarily mixes them for me.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [September 15, 2022, 10:01pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/9 "2022-09-15T22:01:37Z")

</div>

As I said in my previous message, Shift-Enter works with spaces only too. That is, it adds the appropriate number of spaces + 2, to compensate for `- `. So if you open the document in a code editor with monospace font, it will be aligned.

If you want obsidian to behave like a code editor, I suggest you stick with source mode with a monospace font.

If want obsidian to behave exactly like Reader, I am sorry but that’s never truly going to happen because Live Preview is still a code editor faking some aspects of post processed markdown.

---

<div class="post-metadata">

**Author:** ![NomarCub](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/bbe5ce/32.png) [@NomarCub](https://forum.obsidian.md/u/NomarCub)\
**Post date:** [September 16, 2022, 3:47pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/10 "2022-09-16T15:47:29Z")

</div>

To your first point, I know the hotkey works with spaces, but spaces have other drawbacks in Obsidian, and I prefer not to use them. There’s no way to customize how deep they indent, and to make them align with reading view without messing up other things. I also linked the issue with 2 spaces. Regardless, you _can_ use tabs in Obsidian, so you should be able to here. And again, I don’t want to have to use the hotkey for this, or mix tabs and spaces.

I know the difficulties between modes, in a way this is a request to fake processed markdown better in preview. Or at least offer some consistency or transparency as to why the tab size setting only affects tabs outside of lists or code or quotes, and why this instance doesn’t count as part of a list.

---

<div class="post-metadata">

**Author:** ![ironhak](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/b77776/32.png) [@ironhak](https://forum.obsidian.md/u/ironhak)\
**Post date:** [January 4, 2024, 11:29am UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/11 "2024-01-04T11:29:24Z")

</div>

I still don’t understand why we got Live-Preview mode instead of a WYSIWYG mode (like typora) as advertised years ago.

---

<div class="post-metadata">

**Author:** ![ryadaj](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryadaj/32/12683_2.png) [@ryadaj](https://forum.obsidian.md/u/ryadaj)\
**Post date:** [January 4, 2024, 3:29pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/12 "2024-01-04T15:29:06Z")

</div>

Not sure I understand. Would you expand on the differences between these?

---

<div class="post-metadata">

**Author:** ![ironhak](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/b77776/32.png) [@ironhak](https://forum.obsidian.md/u/ironhak)\
**Post date:** [January 5, 2024, 8:23am UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/13 "2024-01-05T08:23:56Z")

</div>

On typora you have a full wysiwyg, on obsidian you have reading mode and live-preview, the latter is just a source mode that badly emulates the reading mode. What typira/notion do instead is merging edit and live preview.  
On typora for example you don’t need to customise CSS for both reading and live-preview, while on obsidian you have to create two separate snippets for just one modification.  
And anyway, live-preview is very bad and eveytime I switch from reading and live I lost my flow and where I was located on the note.

---

<div class="post-metadata">

**Author:** ![ryadaj](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryadaj/32/12683_2.png) [@ryadaj](https://forum.obsidian.md/u/ryadaj)\
**Post date:** [January 5, 2024, 4:03pm UTC](https://forum.obsidian.md/t/live-preview-improve-vertical-alignment-of-multiple-paragraphs-in-lists/33866/14 "2024-01-05T16:03:30Z")

</div>

Understood! Thanks 🙂
