mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
15 lines
317 B
JavaScript
15 lines
317 B
JavaScript
// @ts-check
|
|
|
|
"use strict";
|
|
|
|
const map = new Map();
|
|
|
|
module.exports.set = (keyValuePairs) => {
|
|
for (const [ key, value ] of Object.entries(keyValuePairs)) {
|
|
map.set(key, value);
|
|
}
|
|
};
|
|
module.exports.clear = () => map.clear();
|
|
|
|
module.exports.referenceLinkImageData =
|
|
() => map.get("referenceLinkImageData");
|