Skip to content

Commit

Permalink
clear all images in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
baryon committed May 23, 2020
1 parent 6ddfb8f commit 1a4c560
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Expand Up @@ -20,6 +20,9 @@ module.exports = function(md, config){
md.__image = {}
delete md.__image[src];
}
md.image_clear = function(){
delete md.__image
}
var imagedefault = md.renderer.rules.image;
md.renderer.rules.image = function(tokens, idx, options, env, slf){
var _attrs = tokens[idx].attrs;
Expand Down

0 comments on commit 1a4c560

Please sign in to comment.