Skip to content

Inconsistent markdown underscores in sidebar and search #544

Closed
@aldrinmartoq

Description

@aldrinmartoq

Bug report

The sidebar and search are incorrectly handling underscores. Sometimes appears, sometimes are removed and sometimes partially removed. Ex: For this markdown ## utc_prev_offset, it appears as utcprevoffset in the search and sidebar.

Version

vuepress 0.10.0

Steps to reproduce

Sample page: https://a0.github.io/a0-tzmigration/data/#local-ini-str-local-fin-str

Source: https://github.com/a0/a0-tzmigration/blob/master/docs/data/README.md

What is expected?

They should look the same.

What is actually happening?

The underscores are removed.

  • For the title ### utc_offset it appears correctly: utc_offset.
  • For the title ### utc_prev_offset it appears wrong: utcprevoffset.
  • For the title ### local_ini_str, local_fin_str it appears wrong: localini_str, local_finstr.

Other relevant information

  • Your OS: Mac OS X 10.13.4
  • Node.js version: v8.9.4
  • Browser version: Google Chrome 67, Safari 11.1
  • Is this a global or local install? local
  • Which package manager did you use for the install? yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions