Add ~ space support and complex formula tests
Agent-Logs-Url: https://github.com/wesleyel/swiftui-math/sessions/6740d67f-473b-43b8-87ba-25d9469f5757 Co-authored-by: wesleyel <48174882+wesleyel@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
569db11ed5
commit
348f75ccea
@@ -537,8 +537,10 @@ extension Math {
|
||||
return atom(fromAccentedCharacter: ch)
|
||||
case _ where ch.utf32 < 0x0021 || ch.utf32 > 0x007E:
|
||||
return nil
|
||||
case "$", "%", "#", "&", "~", "\'", "^", "_", "{", "}", "\\":
|
||||
case "$", "%", "#", "&", "\'", "^", "_", "{", "}", "\\":
|
||||
return nil
|
||||
case "~":
|
||||
return Space(amount: 3)
|
||||
case "(", "[":
|
||||
return Atom(type: .open, nucleus: stringValue)
|
||||
case ")", "]", "!", "?":
|
||||
|
||||
Reference in New Issue
Block a user