Skip to content

Current TeX delimiter results in messages involving dollar amounts being mangled #769

@bunlibnow

Description

@bunlibnow

Describe the bug

It is great to see Sable moving towards using marked and KaTeX rather than a bespoke Markdown parser, however I do not think the TeX-like dollar sign delimiter is fitting for a general purpose messaging app. Trying to send a message involving dollar amounts (probably more often hit than trying to send equations) results in mangling. Perhaps Sable could move to the LaTeX \(...\) syntax rather than the TeX-like $...$?

Reproduction

  1. Type a message such as "I just bought something for $10 on sale, it was originally $20!"
  2. Send and witness it be mangled by KaTeX
Image

Expected behavior

The message would be left alone, and rendered normally by Sable.

Platform and versions

1. Linux
2. Firefox 140.10.1esr
3. 1.15.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions