Skip to content

wrong slugify result for some heading situation #49

Closed
@magicdawn

Description

@magicdawn

e.g http://magicdawn.ml/clean-code-javascript/#/

there are some md code like

## **Variables**
### Use meaningful and pronounceable variable names

GitHub renders like

<h2>
  <a id="user-content-variables" class="anchor" href="#variables" aria-hidden="true">
    <svg>...</svg>
  </a>
  <strong>Variables</strong
</h2>

And docsify renders

<h2 id="strongvariablesstrong">
  <a href="#/#strongvariablesstrong" data-id="strongvariablesstrong" class="anchor">
    <span>
      <strong>Variables</strong>
    </span>
  </a>
</h2>

cause

image

results

Manually anchor broken

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions