//
//  XTHtmlTagImg.m
//  TadsTerp
//
//  Created by Rune Berg on 19/09/14.
//  Copyright (c) 2014 Rune Berg. All rights reserved.
//

#import "XTHtmlTagImg.h"
#import "XTBaseTextHandler.h"


@implementation XTHtmlTagImg

+ (NSString *)name
{
	return @"img";
}

+ (BOOL)standalone
{
	return YES;
}

- (void)format:(NSObject<XTOutputFormatterProtocol> *)formatter
   textHandler:(XTBaseTextHandler *)textHandler
{
	NSArray *formattedElements = [formatter handleHtmlTagImg:self];
	[textHandler receiveFormattedElements:formattedElements];
}

@end
