import Renderables from '../Renderables';
import node from "../../support/node";
import { Specification } from "../../support/Specification";
/**
 * Implementation of the 'italic' markup element.
 * An i HTML element is created, the attributes id and
 * text from the markup applied and the class
 * lto-italic is added to allow CSS manipulations.
 *
 * @see {@link IRenderable}
 */
var Italic = /** @class */ (function () {
    function Italic(message) {
        this.spec = message;
    }
    /**
     * @inheritDoc
     */
    Italic.prototype.render = function (renderer, isNested) {
        var italic = node("i");
        new Specification(this.spec).initNode(italic, "lto-italic");
        italic.setAriaLabel(this.spec.ariaLabel);
        return italic.unwrap();
    };
    return Italic;
}());
export { Italic };
Renderables.register("italic", Italic);
//# sourceMappingURL=index.js.map