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