Skip to content

Commit

Permalink
feat: add safeTitle as template tag
Browse files Browse the repository at this point in the history
add #52
  • Loading branch information
chhoumann committed Nov 14, 2022
1 parent 37315f7 commit 77b0297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TemplateEngine.ts
Expand Up @@ -70,6 +70,7 @@ export function NoteTemplateEngine(template: string, episode: Episode) {

return htmlToMarkdown(episode.description)
});
addTag('safetitle', replaceIllegalFileNameCharactersInString(episode.title));
addTag('url', episode.url);
addTag('date', (format?: string) => episode.episodeDate ?
window.moment(episode.episodeDate).format(format ?? "YYYY-MM-DD")
Expand Down

0 comments on commit 77b0297

Please sign in to comment.