-
if attr? :role
-
text = “<phrase role="#{attr :role}">#@text</phrase>”
-
-
else
-
text = @text
-
-
case @type
-
when :emphasis %emphasis=text
-
when :strong %emphasis(role='strong')=text
-
when :monospaced %literal=text
-
when :superscript %superscript=text
-
when :subscript %subscript=text
-
when :double “#{text}”
-
when :single ‘#{text}’
-
else
text¶ ↑