Commit 79f7a6e 1 parent 11b6831 commit 79f7a6e Copy full SHA for 79f7a6e
File tree 3 files changed +4
-1
lines changed
packages/typedoc-plugin-markdown
src/theme/context/helpers
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ export function getCommentParts(
63
63
} else {
64
64
const fileName = this . page . project . files . getName ( part . target ) ;
65
65
if ( fileName ) {
66
- url = this . getRelativeUrl ( `_media/${ fileName } ` ) ;
66
+ const anchor = part . targetAnchor ? `#${ part . targetAnchor } ` : '' ;
67
+ url = this . getRelativeUrl ( `_media/${ fileName } ${ anchor } ` ) ;
67
68
}
68
69
}
69
70
Original file line number Diff line number Diff line change 25
25
* Relative Links:
26
26
*
27
27
* - [Relative Document](../../PROJECT_DOC_1.md)
28
+ * - [Relative Document With Anchor](../../PROJECT_DOC_1.md#anchor)
28
29
*
29
30
* Relative Image Links:
30
31
*
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ External links:
41
41
Relative Links:
42
42
43
43
- [Relative Document](_media/PROJECT_DOC_1.md)
44
+ - [Relative Document With Anchor](_media/PROJECT_DOC_1.md#anchor)
44
45
45
46
Relative Image Links:
46
47
You can’t perform that action at this time.
0 commit comments