Skip to content

Commit 33f898f

Browse files
committed
Remove the fileExt for angularHighligher as it's not used
1 parent 11e8f0d commit 33f898f

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

build/lib/angularHighlighter.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
export function mustUseAngularHighlighter(fileContent: string): boolean;
22

3-
export function highlightAngularComponent(
4-
fileContent: string,
5-
fileExt: string,
6-
): Promise<string>;
3+
export function highlightAngularComponent(fileContent: string): Promise<string>;

build/lib/angularHighlighter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export function mustUseAngularHighlighter(fileContent: string): boolean {
88

99
export async function highlightAngularComponent(
1010
fileContent: string,
11-
fileExt: string,
1211
): Promise<string> {
1312
const templateCode = getAngularTemplateCode(fileContent);
1413

@@ -31,7 +30,7 @@ export async function highlightAngularComponent(
3130
"template: `" + removeCodeWrapper(templateCodeHighlighted) + "`,",
3231
);
3332
} else {
34-
codeHighlighted = await codeToHighlightCodeHtml(fileContent, fileExt);
33+
codeHighlighted = await codeToHighlightCodeHtml(fileContent, "angular-ts");
3534
}
3635

3736
return codeHighlighted;

build/lib/generateContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default async function generateContent(
210210
frameworkSnippet.markdownFiles.push(file);
211211
} else {
212212
file.contentHtml = mustUseAngularHighlighter(content)
213-
? await highlightAngularComponent(content, ext)
213+
? await highlightAngularComponent(content)
214214
: await codeToHighlightCodeHtml(content, ext);
215215

216216
frameworkSnippet.files.push(file);

0 commit comments

Comments
 (0)