//
// XTHtmlTagSup.m
// XTads
//
// Created by Rune Berg on 04/01/2021.
// Copyright © 2021 Rune Berg. All rights reserved.
//
#import "XTHtmlTagSup.h"
@implementation XTHtmlTagSup
+ (NSString *)name
{
return @"sup";
}
- (XTFormattingSpecification *)makeFormattingSpecificationFrom:(XTFormattingSpecification *)formattingSpec
{
XTFormattingSpecification *res = [XTFormattingSpecification specificationFrom:formattingSpec];
if (! res.subscript && ! res.superscript) {
res.superscript = YES;
if (res.htmlSize >= 2) {
res.htmlSize -= 1;
}
}
return res;
}
@end