Skip to content

Incorrect link fragment #832

@ocavue

Description

@ocavue

What package is the bug related to?

typedoc-plugin-markdown

Describe the issue

Please check the repo https://github.com/issueset/typedoc-markdown-fragment for a reproduction.

The link fragments file1.md#class1#prop1 and file1.md#interface1#prop1-1 are incorrect as a link should not contains two #.

https://github.com/issueset/typedoc-markdown-fragment/blob/b1f13a424aaabbe562c9f6558e43c0e3198da886/out/md/file2.md?plain=1#L45-L47

###### Inherited from

[`Class1`](file1.md#class1).[`prop1`](file1.md#class1#prop1)

https://github.com/issueset/typedoc-markdown-fragment/blob/b1f13a424aaabbe562c9f6558e43c0e3198da886/out/md/file2.md?plain=1#L77

###### Inherited from

[`Interface1`](file1.md#interface1).[`prop1`](file1.md#interface1#prop1-1)

Expected behavior

Correct fragments like the HTML outputs:

https://github.com/issueset/typedoc-markdown-fragment/blob/b1f13a424aaabbe562c9f6558e43c0e3198da886/out/html/classes/file2.Class2.html#L126C1-L128C1

<p>Inherited from <a href="file1.Class1.html">Class1</a>.<a
href="file1.Class1.html#constructor">constructor</a></p>

https://github.com/issueset/typedoc-markdown-fragment/blob/b1f13a424aaabbe562c9f6558e43c0e3198da886/out/html/interfaces/file2.Interface2.html#L116-L117

<p>Inherited from <a href="file1.Interface1.html">Interface1</a>.<a
href="file1.Interface1.html#prop1">prop1</a></p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue raised as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions