Sub-lists rendered incorrectly with a multiline equation block inside

Steps to reproduce

  1. Open the sandbox vault.
  2. Start a list.
  3. Put a math equation block ($$) with some multiline environments in the list:
    - This is a math equation in an unordered list: $\begin{align*} 
    a + b = c \\
    c + d = e
    \end{align*}$
    
  4. Put some other sub-lists:
    - This is a math equation in an unordered list: $\begin{align*} 
    a + b = c \\
    c + d = e
    \end{align*}$
    	- aedioaejd
    	- aejdoiae
    	- aejdoiae 
    
  5. The rendered result in live-preview mode is correct:
    image
  6. However, it is not correct in the read mode:
    image

Expected result

The sub-lists should also be rendered correctly in the read mode.

Actual result

The read mode is rendered incorrectly as illustrated above.

Environment

  • Operating system: Windows 11 22H2
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.0.3
    Installer version: v0.15.9
    Operating system: Windows 10 Pro 10.0.22623
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Restricted mode: on

RECOMMENDATIONS:
none


Additional information

I can solve this issue by flattening the equation block (i.e. deleting line breaks).

However, I don’t think flattening all long multiline equations is a good choice for an equation writer.

1 Like

we don’t support this. You are using inline math format to write multiline equation.

Ohh! I’m sorry for the misleading code blocks.

What I really meant are (display math block instead of inline math block)

- This is a math equation in an unordered list: $$\begin{align*} 
a + b = c \\
c + d = e
\end{align*}$$
    - abc
    - abc
- abc

still produces the same result in the reader mode:
image

ok, then use math block as block and not inline.

Sure!

However, the problem is still there and becomes more severe:
I used the math block as follows:

- This is a math equation in an unordered list: 
$$\begin{align*} 
a + b = c \\
c + d = e
\end{align*}$$
    - abc
    - aedj
- abcd

Ther render results are

Is it because this kind of operations is not supported?

- This is a math equation in an unordered list: 
       $$\begin{align*} 
    a + b = c \\
    c + d = e
    \end{align*}$$
    - abc
    - aedj
- abcd

2 Likes