/**
* Describes the supported html tags
* @see {@link https://meta.stackexchange.com/questions/1777/what-html-tags-are-allowed-on-stack-exchange-sites|Supported tags}
*/
export declare enum TagType {
unknown = 0,
comment = 1,
strike = 2,//, ,
strong = 3,//,
emphasis = 4,//,
hardbreak = 5,//
,
(space agnostic)
code = 6,
link = 7,// [href] [title]
image = 8,//
[src] [width] [height] [alt] [title]
keyboard = 9,
pre = 10,
sup = 11,
sub = 12,
heading = 13,// , , , , , (support full set of valid h tags)
paragraph = 14,
horizontal_rule = 15,
blockquote = 16,
list_item = 17,
ordered_list = 18,
unordered_list = 19,
description_details = 20,//
description_list = 21,//
description_term = 22
}
/**
* Describes the supported attributes for each html tag
* @see {@link https://meta.stackexchange.com/questions/1777/what-html-tags-are-allowed-on-stack-exchange-sites|Supported tags}
*/
export declare const supportedTagAttributes: {
[key in TagType]?: string[];
};
/**
* Collection of elements that are counted as "block" level elements
* TODO change to a map for fast lookup?
*/
export declare const blockElements: TagType[];
/**
* Collection of elements that are self-closing (e.g.
)
* TODO change to a map for fast lookup?
*/
export declare const selfClosingElements: TagType[];