Skip to content

Commit

Permalink
Added additional comments to mediaAttributeCachingFn and mediaAttribu…
Browse files Browse the repository at this point in the history
…teCache
  • Loading branch information
mjasikowski committed Sep 26, 2024
1 parent dc247c3 commit 422f1b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ExpensiMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ type Extras = {
* @deprecated Replaced with mediaAttributeCache
*/
videoAttributeCache?: Record<string, string>;
/**
* Function used to cache HTML tag attributes during conversion to and from Markdown
* @param mediaSource URI to media source
* @param attrs Additional attributes to be cached
*/
mediaAttributeCachingFn?: (mediaSource: string, attrs: string) => void;
/**
* Key/value cache for HTML tag attributes, where the key is media source URI, value is cached attributes
*/
mediaAttributeCache?: Record<string, string>;
};
const EXTRAS_DEFAULT = {};
Expand Down

0 comments on commit 422f1b6

Please sign in to comment.