Skip to content

Commit

Permalink
Handle the audios in "question" part of card.
Browse files Browse the repository at this point in the history
  • Loading branch information
timgreen authored Nov 1, 2022
1 parent de73775 commit ab66e76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export class Parser {
let answer = match[4].trim();
let medias: string[] = this.getImageLinks(question);
medias = medias.concat(this.getImageLinks(answer));
medias = medias.concat(this.getAudioLinks(question));
medias = medias.concat(this.getAudioLinks(answer));
question = this.parseLine(question, vault);
answer = this.parseLine(answer, vault);
Expand Down Expand Up @@ -402,6 +403,7 @@ export class Parser {
let answer = match[5].trim();
let medias: string[] = this.getImageLinks(question);
medias = medias.concat(this.getImageLinks(answer));
medias = medias.concat(this.getAudioLinks(question));
medias = medias.concat(this.getAudioLinks(answer));

answer = this.getEmbedWrapContent(embedMap, answer);
Expand Down

0 comments on commit ab66e76

Please sign in to comment.