- unless @id.nil?
%a{:id=>@id}
- case @type
- when :emphasis
%em{:class=>role}=@text
- when :strong
%strong{:class=>role}=@text
- when :monospaced
%code{:class=>role}=@text
- when :superscript
%sup{:class=>role}=@text
- when :subscript
%sub{:class=>role}=@text
- when :double
=(role? ? %(“#{@text}”) : %(“#{@text}”))
- when :single
=(role? ? %(‘#{@text}’) : %(‘#{@text}’))
- else
=(role? ? %(#{@text}) : @text)