Skip to content

Commit

Permalink
hidden code snippets removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Akos Balasko committed May 29, 2020
1 parent f5b5652 commit ce88b66
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/process-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ const addMediaReference = (content: string, resourceHashes: any, hash: any, rela
`<en-media [^>]*hash="${hash}".[^>]*\/>`;
const re = new RegExp(replace, 'g');

/* updatedContent = (!yarleOptions.wikiStyleMediaLinks) ?
content.replace(re, `<img alt=${resourceHashes[hash]} src=${src}>`) :
content.replace(re, `<a href=${src}>${resourceHashes[hash]}</a>`);
*/
updatedContent = content.replace(re, `<a href=${src}>${resourceHashes[hash]}</a>`);

return updatedContent;
Expand Down

0 comments on commit ce88b66

Please sign in to comment.