Skip to content

When document line count exceeds 500, Latex decorations for multi-line math fail to render properly #22

@Kruse002

Description

@Kruse002

In any document that exceeds 500 lines and uses multi-line math excessively, the app will fail to interpret multi-line math correctly and instead attempt to render any non-math text that occurs between instances of multi-line math.

Steps to reproduce:

1 - With Markless' Latex math rendering enabled, begin a new .md document.
2 - Enter the following:

$$
\frac{1}{2}
$$
Normal text

...followed by the enter key. Observe that 1/2 renders as math while the normal text remains normal.
3 - Press Ctrl+A and Ctrl+C. Then hold Ctrl+V until the document line count exceeds 500.

Expected result: The text surrounded by double dollar signs continues to render as math.

Actual result: The text outside the double dollar signs gets rendered as math while the \frac{1}{2} lines are displayed as literal text.

Note: The failure occurs whenever the code in runner.js, line 157, in the definition of function updateDecorations is triggered. A temporary workaround is possible at the risk of performance issues. Open %USERPROFILE%.vscode\extensions\tejasvi.markless-1.0.7\src\main.js and navigate to "document.linecount>500" at line 57. Modify the value of 500 to be arbitrarily high.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions