Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoore1 committed Jan 24, 2024
1 parent 3e13f57 commit f91854d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/convertMarkdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function isLocalAudioFile(ref: string): boolean {
if (!refLower.startsWith('http')) {
const ext = getFilenameExt(refLower);
if (ext != null) {
result = ext === 'mp3'|| ext === 'webm' || ext === 'ogg' || ext === 'wav';
result = ext === 'mp3' || ext === 'webm' || ext === 'ogg' || ext === 'wav';
}
}
return result;
Expand Down Expand Up @@ -110,8 +110,13 @@ function getAudioHtmlFromMarkdownLink(link: string, text: string): string {
let result = '';
const refLower = link.toLowerCase();
const ext = getFilenameExt(refLower);
if (ext === 'mp3'|| ext === 'wav') {
result = ' \\zaudioc-s | link="' + encodeURIComponent(link) + '" \\*' + text + ' \\zaudioc-e\\* ';
if (ext === 'mp3' || ext === 'wav') {
result =
' \\zaudioc-s | link="' +
encodeURIComponent(link) +
'" \\*' +
text +
' \\zaudioc-e\\* ';
}
return result;
}
Expand Down

0 comments on commit f91854d

Please sign in to comment.