Thinkmill / Thinkmill/keystatic

MDX Field serialises latex expression

Open
#1,319 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Description

So the Mdx content editor serialises latex expressions. I guess it serialises all the JS expressions.
image

image

Acorn parse error is thrown when I modify the file locally.
image

The issue might be with Prosemirror and/or with Mdx. Without remark-math plugin, even my vscode editor throws an acron parse error.

I found Prosemirror Math extension.

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the issue in the MDX content editor and inspect the ProseMirror serialization path, comparing behavior with and without the remark-math plugin. Use the reported Acorn parse error as the failure signal; done means LaTeX expressions remain intact and local edits parse successfully. No file or test is named, so locate the relevant editor entry point first.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.