File size: 2,144 Bytes
c9b2910
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
export const htmlTagToText = (tagName: string): string => {
  switch (tagName.toLowerCase()) {
    case "h1":
      return "Heading 1";
    case "h2":
      return "Heading 2";
    case "h3":
      return "Heading 3";
    case "h4":
      return "Heading 4";
    case "h5":
      return "Heading 5";
    case "h6":
      return "Heading 6";
    case "p":
      return "Text Paragraph";
    case "span":
      return "Inline Text";
    case "button":
      return "Button";
    case "input":
      return "Input Field";
    case "select":
      return "Select Dropdown";
    case "textarea":
      return "Text Area";
    case "form":
      return "Form";
    case "table":
      return "Table";
    case "thead":
      return "Table Header";
    case "tbody":
      return "Table Body";
    case "tr":
      return "Table Row";
    case "th":
      return "Table Header Cell";
    case "td":
      return "Table Data Cell";
    case "nav":
      return "Navigation";
    case "header":
      return "Header";
    case "footer":
      return "Footer";
    case "section":
      return "Section";
    case "article":
      return "Article";
    case "aside":
      return "Aside";
    case "div":
      return "Division";
    case "main":
      return "Main Content";
    case "details":
      return "Details";
    case "summary":
      return "Summary";
    case "code":
      return "Code Snippet";
    case "pre":
      return "Preformatted Text";
    case "kbd":
      return "Keyboard Input";
    case "label":
      return "Label";
    case "canvas":
      return "Canvas";
    case "svg":
      return "SVG Graphic";
    case "video":
      return "Video Player";
    case "audio":
      return "Audio Player";
    case "iframe":
      return "Embedded Frame";
    case "link":
      return "Link";
    case "a":
      return "Link";
    case "img":
      return "Image";
    case "ul":
      return "Unordered List";
    case "ol":
      return "Ordered List";
    case "li":
      return "List Item";
    case "blockquote":
      return "Blockquote";
    default:
      return tagName.charAt(0).toUpperCase() + tagName.slice(1);
  }
};