Incorrect interpretation of the syntax of inline formulas ($ symbols issue)

What’s The Bug?

Anytype still interprets a block of text containing two (or more) $ symbols not correctly in some cases. Sometimes Anytype transforms the text into LaTeX formula even when it isn’t implied to.

How To Reproduce It

Try to render this texts:

An example of incorrect interpretation of the syntax of inline (embedded) formulas is text that contains two $ symbols that do not imply the creation of a formula. For example, the average price of Nvidia shares at the beginning of October was 119$, and at the beginning of November it was already 135$.

An example of incorrect interpretation of the syntax of inline (embedded) formulas is text that contains two $ symbols that do not imply the creation of a formula. For example, the average price of Nvidia shares at the beginning of October was $119, and at the beginning of November it was already $135.

$PWD and $TMP both point to a temporary build directories.

Image or Video



The Expected Behavior

The app should apply formula style only when it is implied to by user.

Additional Context

Another thing that bothers me is the change in the display of text with formulas depending on the cursor position (on the block with the formula or outside the block). You can see this in the attached video.

Device

ThinkPad P52

OS

Windows 10

Anytype Version

v0.44.0

Network Mode

AnySync

Technical Information

OS version: win32 x64 10.0.19045
App version: 0.44.0
Build number: build on 2024-12-16 16:53:50 +0000 UTC at #c04d64d52304c0fe8800032e74e49a7159abdbad (dirty)
Library version: v0.38.7
Anytype Identity: AAHf9w6htfxWX5QGEH4UCJPhC5UBQPdzgNqVSzUeGDDsG99n
Analytics ID: d83cf8b4-8c16-4782-a1f0-99dd4a8866d6
Device ID: 12D3KooWLUXHgMhzZAKBNwvNqTWBAmXhgxpxx1e8UsbPVRKdRuMF

This report has been added to our issue tracker and received by the Development Team.

This issue has been fixed by the Development Team and will be implemented in an upcoming release.