Skip to content

Incorrect bullet location when wrapping long LaTeX equations #2232

@danmou

Description

@danmou

Current behavior

When long LaTeX equations in a bulleted list are wrapped accross multiple lines (with the new behavior introduced in #1718), the bullet is always aligned with the lowest line of the equation in the preview.

For example:

* Loss function (MAP with Gaussian prior -- L2 regularization)
  * $\min\limits_{\mathbf w} \displaystyle ∑\limits_{i = 1}^n \log \left(1 + \exp \left(-y_i \mathbf w^T \mathbf x_i\right)\right) + λ \| \mathbf w\|_2^2$

Results in the following preview (when the window is sufficiently small):

837

Expected behavior

The bullet should be on the line starting with min in the above example

Environment

  • Version : 0.11.7
  • OS Version and name : Ubuntu 16.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions