"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
function plugin(markdownIt) {
    const defaultRender = markdownIt.renderer.rules.code_inline ||
        // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
        function (tokens, idx, options, _env, self) {
            return self.renderToken(tokens, idx, options);
        };
    // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
    markdownIt.renderer.rules.code_inline = (tokens, idx, options, env, self) => {
        const token = tokens[idx];
        let tokenClass = token.attrGet('class');
        if (!tokenClass)
            tokenClass = '';
        tokenClass += ' inline-code';
        token.attrSet('class', tokenClass.trim());
        return defaultRender(tokens, idx, options, env, self);
    };
}
exports.default = {
    plugin,
};
//# sourceMappingURL=code_inline.js.map