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

[Bug report] #64

Open
1 task done
pragdave opened this issue May 22, 2022 · 1 comment
Open
1 task done

[Bug report] #64

pragdave opened this issue May 22, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pragdave
Copy link

pragdave commented May 22, 2022

βœ… Checklist

  • I am using the latest version

πŸ”Ž Description

Concise Description

The following input:

---
title: Test
---

$\sqrt{x}$

Generates the following error:

ParseError: KaTeX parse error: Expected group as argument to '\sqrt' at end of input: \sqrt
    at new ParseError (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:100:14)
    at Parser.parseGroupOfType (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:17918:19)
    at Parser.parseArguments (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:17848:22)
    at Parser.parseFunction (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:17794:37)
    at Parser.parseGroup (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:18190:21)
    at Parser.parseAtom (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:17629:21)
    at Parser.parseExpression (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:17491:23)
    at Parser.parse (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:17423:24)
    at parseTree (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:18431:21)
    at renderToDomTree (/Volumes/X8/LevelUp/Content/node_modules/katex/dist/katex.js:18540:16) {
  position: 5
}

Something similar happens whenever an open brace appears in KaTeX input: $123_{10}$ etc.

Thanks for all your work.

Dave

πŸ“„ Environment info (npx vuepress info)

System:
    OS: macOS 12.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Memory: 293.32 MB / 16.00 GB
    Shell: 3.3.1 - /usr/local/bin/fish
Binaries:
    Node: 16.4.1 - ~/.asdf/installs/nodejs/16.4.1/bin/node
    Yarn: 1.22.17 - ~/.asdf/installs/nodejs/16.4.1/.npm/bin/yarn
    npm: 7.18.1 - ~/.asdf/plugins/nodejs/shims/npm
Utilities:
    Git: 2.32.0 - /usr/bin/git
Browsers:
    Chrome: 101.0.4951.64
    Edge: 101.0.1210.53
    Firefox: 100.0.1
    Safari: 15.4
npmPackages:
    @vuepress/bundler-vite:  2.0.0-beta.45 
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli:  2.0.0-beta.45 
    @vuepress/client:  2.0.0-beta.45 
    @vuepress/core:  2.0.0-beta.45 
    @vuepress/markdown:  2.0.0-beta.45 
    @vuepress/plugin-active-header-links:  2.0.0-beta.45 
    @vuepress/plugin-back-to-top:  2.0.0-beta.45 
    @vuepress/plugin-container: ^2.0.0-beta.39 => 2.0.0-beta.45 
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-external-link-icon:  2.0.0-beta.45 
    @vuepress/plugin-git:  2.0.0-beta.45 
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-beta.45 
    @vuepress/plugin-nprogress:  2.0.0-beta.45 
    @vuepress/plugin-palette:  2.0.0-beta.45 
    @vuepress/plugin-prismjs:  2.0.0-beta.45 
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: ^2.0.0-beta.39 => 2.0.0-beta.45 
    @vuepress/plugin-search: Not Found
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data:  2.0.0-beta.45 
    @vuepress/plugin-toc: Not Found
    @vuepress/shared:  2.0.0-beta.45 
    @vuepress/theme-default:  2.0.0-beta.45 
    @vuepress/utils:  2.0.0-beta.45 
    vue:  3.2.35 
    vue-loader: Not Found
    vue-router:  4.0.15 
    vuepress: ^2.0.0-beta.39 => 2.0.0-beta.45 
    vuepress-vite:  2.0.0-beta.45 
    vuepress-webpack: Not Found

πŸ”— Reproduction link / repo:

No response

@pragdave pragdave added the bug Something isn't working label May 22, 2022
@Renovamen
Copy link
Owner

Hi, it works fine for me, could you please provide a minimal reproduction? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants