logseq / logseq/logseq

cloze won't work if including formula with `{}` inside

Open
#3,289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

can-be-reproduced parser
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

### **Describe the bug**

The plain text is

```
Example {{cloze $abc_{xx}$ sdafdsf}}
```

The output is

![image](https://user-images.githubusercontent.com/18425020/143675416-b05f2a19-a73e-4d59-a9c6-768f237921d6.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reproducing the example `{{cloze $abc_{xx}$ sdafdsf}}`, then trace the cloze parsing path and identify where braces inside the formula are mishandled. Done means cloze content containing this formula is parsed and displayed without the reported failure, with a regression test if the relevant test location can be found.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, markdown
Domain
content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.