File tree 3 files changed +2
-259
lines changed
3 files changed +2
-259
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
import highlightJs , { HighlightResult } from 'highlight.js' ;
10
10
import { Renderer as MarkedRenderer } from 'marked' ;
11
11
import { AIO_URL } from '../backwards-compatibility/domains' ;
12
- import { rewriteLinks } from '../backwards-compatibility/links-mapper' ;
13
12
import { splitLines } from '../transforms/code-transforms' ;
14
13
15
14
/**
@@ -49,9 +48,8 @@ export const renderer: Partial<MarkedRenderer> = {
49
48
` ;
50
49
} ,
51
50
link ( href : string , title : string , text : string ) : string {
52
- const link = rewriteLinks ( href ) ;
53
51
text = text . startsWith ( AIO_URL ) ? 'our guides' : text ;
54
- return `<a href="${ link } ">${ text } </a>` ;
52
+ return `<a href="${ href } ">${ text } </a>` ;
55
53
} ,
56
54
list ( body : string , ordered : boolean , start : number ) {
57
55
if ( ordered ) {
Original file line number Diff line number Diff line change 9
9
import { marked } from 'marked' ;
10
10
import { JsDocTagEntry } from '../entities' ;
11
11
12
- import { rewriteLinks } from '../backwards-compatibility/links-mapper' ;
13
12
import {
14
13
getDeprecatedEntry ,
15
14
isDeprecatedEntry ,
@@ -144,11 +143,7 @@ function getHtmlAdditionalLinks<T extends HasJsDocTags & HasModuleName>(
144
143
145
144
return undefined ;
146
145
} )
147
- . filter ( ( link ) : link is LinkEntryRenderable => ! ! link )
148
- . map ( ( link ) => {
149
- link . url = rewriteLinks ( link . url ) ;
150
- return link ;
151
- } ) ;
146
+ . filter ( ( link ) : link is LinkEntryRenderable => ! ! link ) ;
152
147
153
148
return seeAlsoLinks ;
154
149
}
You can’t perform that action at this time.
0 commit comments