jgm / jgm/texmath

Reduce the amount of escaping in typst math writer

Open
#263 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
406
Forks
86
Avg merge
1h 25m
Merged PRs (30d)
1

Description

**Describe your proposed improvement and the problem it solves.**

When translating simple expressions like:

```
$r_i(c, c_M)$
```

the writer adds a lot of seemingly unnecessary escape sequences to parentheses and commas:

```
$r_i \( c \, c_M \)$
```

Probably this simplify the code and/or ensure against some corner cases that I can't think of, but it certainly clutters the code which can be an inconvenience for progressive markdown -> typst approaches.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.