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

Underscores in section title ignored in TOC #2026

Closed
1 task done
Benjamin-Lee opened this issue Nov 15, 2019 · 2 comments
Closed
1 task done

Underscores in section title ignored in TOC #2026

Benjamin-Lee opened this issue Nov 15, 2019 · 2 comments

Comments

@Benjamin-Lee
Copy link

Benjamin-Lee commented Nov 15, 2019

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

Create a file with a section named foo_bar_baz and note that the TOC shows it as foobarbaz.

This is closely related to #544.

What is expected?

In the sidebar, the section title should be immediate_command_async, which is the name of the function.

What is actually happening?

image

Other relevant information

  • Output of npx vuepress info in my VuePress project:
Environment Info:

  System:
    OS: macOS 10.15.1
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 12.11.1 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.11.3 - /usr/local/bin/npm
  Browsers:
    Chrome: 78.0.3904.97
    Firefox: Not Found
    Safari: 13.0.3
  npmPackages:
    @vuepress/core:  1.0.2
    @vuepress/theme-default:  1.0.2
    vuepress:  1.0.2
  npmGlobalPackages:
    vuepress: Not Found
@haoranpb
Copy link
Contributor

Hi @Benjamin-Lee ,

I'm sorry I can't reproduce your problem, do I miss anything?

My reproduction:

My suggestions are:

  1. Upgrade your Vuepress to the latest version 1.2.0
  2. Add \ before _ as Inconsistent markdown underscores in sidebar and search #544 suggested

@kefranabg
Copy link
Collaborator

@Benjamin-Lee I'll close the issue for now. Feel free to comment if the answer didn't solve your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants