ConGustoAI / ConGustoAI/chat

Write a replaceement for `remark-math` to only handle the \( ... \) formulas

Open
#66 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Svelte
Stars
9
Forks
1
Avg merge
58m
Merged PRs (30d)
1

Description

Markdown will interpret `$100 to $200` as a formula with the default syntax:

![image](https://github.com/user-attachments/assets/79e3348e-df49-4fde-bb3f-642b98ee18ab)

At the moment the `\( ... \)` formulas are just converted to `$ ... $` with a regex:
```
let convertedMsg = msg.text
.replace(/\\\((.*?)\\\)/g, '$$ $1 $$')
.replace(/\\\[\n([\s\S]*?)\n(\s*)\\\]/g, '$$$$\n$1\n$2$$$$'); // Preserve leading whitespace before closing $$
```

- Write a remark plugin to handle only the bracket formulas
- Add an option to select md formula syntax per-agent.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the message-processing code containing the shown regex and inspect how per-agent options are represented. Done means a remark plugin handles only the \( ... \) and \[ ... \] formulas without treating currency such as $100 to $200 as math, with a per-agent choice of formula syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
content, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.