Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update KaTeX Version #981

Closed
Yue-Zhengyuan opened this issue Jul 9, 2021 · 4 comments
Closed

Update KaTeX Version #981

Yue-Zhengyuan opened this issue Jul 9, 2021 · 4 comments
Labels
Area: Math Res: Duplicate This issue or pull request already exists.

Comments

@Yue-Zhengyuan
Copy link

Proposal

Visual Studio Code now directly supports KaTeX equations in Markdown. The built-in KaTeX renderer is newer (0.13.0, latest), supporting some new features such the commutative diagrams (the CD environment, see this documentation for sample codes). However, VSCode still does not (seem to) support custom macros, KaTeX auto-completion, etc, so this extension is still useful. But the version of KaTeX of this extension is old (0.11.1), without support for CD environment, for example. Hope that it will be updated soon.

@Lemmingh Lemmingh added the Res: Duplicate This issue or pull request already exists. label Jul 9, 2021
@Lemmingh
Copy link
Collaborator

Lemmingh commented Jul 9, 2021

Duplicate of #943

Please try the latest dev build, which includes KaTeX 0.13.11.

"katex": "^0.13.11",

See also
#955
#967

@Lemmingh
Copy link
Collaborator

Lemmingh commented Jul 9, 2021

I'm sorry that we're having trouble in releasing a new version. #966

@memeplex
Copy link

@Lemmingh Could you clarify what will be the relationship between this extension and upstream regarding LaTeX now that some features overlap (KaTeX, syntax highlighting)? Will the extension leverage the builtin KaTeX and highlighter or replace them instead?

@Lemmingh
Copy link
Collaborator

relationship

The math support essentially involves 3 parts:

Unfortunately, they are now implemented by 3 separate components, and I hope we'll be able to organize the internal into one provider.


Will the extension leverage the builtin KaTeX

No. We cannot due to incompatible design.


highlighter

If you're interested in VS Code's architecture of syntax highlighting:

I'd like to migrate to Semantic Highlighting as soon as possible, believing it's the appropriate way to provide syntax highlighting for Markdown. But I have no idea of removing the barrier.


replace them

Hard to say. It depends on VS Code's resolution logic.

Currently, our renderer contributed via extendMarkdownIt() can override the built-in vscode.markdown-math.

But the TextMate grammar contributed via injection goes conflicting: #1008 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Math Res: Duplicate This issue or pull request already exists.
Projects
None yet
Development

No branches or pull requests

3 participants