Support `context`
- Dominant language
- Haskell
- Stars
- 76
- Forks
- 11
- Avg merge
- 9h 5m
- Merged PRs (30d)
- 1
Description
Hello!
I'm rather new to Typst, so please forgive me if what I'm saying doesn't make sense or is otherwise insane!
I was having issues where Typst would compile a document fine, but Pandoc would not. It appeared to be an issue with library code in CeTZ
This appears to reproduce the issue:
```typst
#let fun() = context {
_ = "hi"
}
```
However, both of these are fine:
```typst
#let fun() = {
_ = "hi"
}
```
```typst
#let fun() = context {
x = "hi"
}
```
Additionally, this compiles fine, leading me to believe that `_` might be misinterpreted as the beginning of an emphasis marker:
```typst
#let fun() = context {
__ = "hi"
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file or test is named. Start by running the three Typst snippets from the issue through the parser/evaluator and compare the failing `context` case with the working block cases; done means the failing example is accepted without breaking the existing cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100