@@ -76,16 +76,16 @@ export interface IAsset {
76
76
}
77
77
78
78
export interface IPackageOptions {
79
- cwd ?: string ;
80
- packagePath ?: string ;
81
- githubBranch ?: string ;
82
- baseContentUrl ?: string ;
83
- baseImagesUrl ?: string ;
84
- useYarn ?: boolean ;
85
- dependencyEntryPoints ?: string [ ] ;
86
- ignoreFile ?: string ;
87
- expandGitHubIssueLinks ?: boolean ;
88
- web ?: boolean ;
79
+ readonly cwd ?: string ;
80
+ readonly packagePath ?: string ;
81
+ readonly githubBranch ?: string ;
82
+ readonly baseContentUrl ?: string ;
83
+ readonly baseImagesUrl ?: string ;
84
+ readonly useYarn ?: boolean ;
85
+ readonly dependencyEntryPoints ?: string [ ] ;
86
+ readonly ignoreFile ?: string ;
87
+ readonly gitHubIssueLinking ?: boolean ;
88
+ readonly web ?: boolean ;
89
89
}
90
90
91
91
export interface IProcessor {
@@ -421,7 +421,7 @@ export class MarkdownProcessor extends BaseProcessor {
421
421
private baseImagesUrl : string ;
422
422
private isGitHub : boolean ;
423
423
private repositoryUrl : string ;
424
- private expandGitHubIssueLinks : boolean ;
424
+ private gitHubIssueLinking : boolean ;
425
425
426
426
constructor (
427
427
manifest : Manifest ,
@@ -438,8 +438,7 @@ export class MarkdownProcessor extends BaseProcessor {
438
438
this . baseImagesUrl = options . baseImagesUrl || options . baseContentUrl || ( guess && guess . images ) ;
439
439
this . repositoryUrl = guess && guess . repository ;
440
440
this . isGitHub = isGitHubRepository ( this . repositoryUrl ) ;
441
- this . expandGitHubIssueLinks =
442
- typeof options . expandGitHubIssueLinks === 'boolean' ? options . expandGitHubIssueLinks : true ;
441
+ this . gitHubIssueLinking = typeof options . gitHubIssueLinking === 'boolean' ? options . gitHubIssueLinking : true ;
443
442
}
444
443
445
444
async onFile ( file : IFile ) : Promise < IFile > {
@@ -506,7 +505,7 @@ export class MarkdownProcessor extends BaseProcessor {
506
505
return all . replace ( link , urljoin ( prefix , link ) ) ;
507
506
} ) ;
508
507
509
- if ( this . isGitHub && this . expandGitHubIssueLinks ) {
508
+ if ( this . gitHubIssueLinking && this . isGitHub ) {
510
509
const markdownIssueRegex = / ( \s | \n ) ( [ \w \d _ - ] + \/ [ \w \d _ - ] + ) ? # ( \d + ) \b / g;
511
510
const issueReplace = (
512
511
all : string ,
0 commit comments