import { attributesTransformer } from './attributes-transformer.js';
import { mdastAttributes } from './mdast-attributes.js';
import { micromarkAttributes } from './micromark-attributes.js';
export const remarkAttributes = function () {
    const data = this.data();
    function add(key, value) {
        data[key] ||= [];
        data[key].unshift(value);
    }
    add('micromarkExtensions', micromarkAttributes());
    add('fromMarkdownExtensions', mdastAttributes());
    return attributesTransformer;
};
