idyll-lang/idyll

couldn`t convert string f \mathbin⨾ g \in \operatorname{hom}(A, C)

Offen

#683 geöffnet am 26.01.2021

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (97 Forks)batch import
CompilerComponentsbughelp wanted

Repository-Metriken

Stars
 (1.977 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Describe the bug

Idyll fails to render math formulae with symbol.

To Reproduce Steps to reproduce the behavior:

  1. [Equation]f \mathbin⨾ g \in \operatorname{hom}(A, C)[/Equation]

Expected behavior

Idyll should show the formula correctly.

Desktop:

  • OS: NixOS
  • Browser: Firefox
  • Version: 84.0.2

Additional context

KaTeX actually shows this correctly: https://katex.org/?data=%7B%22displayMode%22%3Atrue%2C%22leqno%22%3Afalse%2C%22fleqn%22%3Afalse%2C%22throwOnError%22%3Atrue%2C%22errorColor%22%3A%22%23cc0000%22%2C%22strict%22%3A%22warn%22%2C%22output%22%3A%22htmlAndMathml%22%2C%22trust%22%3Afalse%2C%22macros%22%3A%7B%22%5C%5Cf%22%3A%22%231f(%232)%22%7D%2C%22code%22%3A%22f%20%5C%5Cmathbin%E2%A8%BE%20g%20%5C%5Cin%20%5C%5Coperatorname%7Bhom%7D(A%2C%20C)%22%7D. But it warns on a non-standard symbol, so if you enable strict mode, it throws an error. It seems like Idyll is overly strict on math, and there seems to be no option to make it less strict.

Contributor Guide