(i: string)
| 141 | const openTags:string[] = []; |
| 142 | |
| 143 | const getSpanClassFor = (i: string) => { |
| 144 | // return if author colors are disabled |
| 145 | if (!authorColors) return false; |
| 146 | |
| 147 | // @ts-ignore |
| 148 | const property = props[i]; |
| 149 | |
| 150 | // we are not insterested on properties in the form of ['color', 'red'], |
| 151 | // see hook exportHtmlAdditionalTagsWithData |
| 152 | if (Array.isArray(property)) { |
| 153 | return false; |
| 154 | } |
| 155 | |
| 156 | if (property.substr(0, 6) === 'author') { |
| 157 | return stripDotFromAuthorID(property); |
| 158 | } |
| 159 | |
| 160 | if (property === 'removed') { |
| 161 | return 'removed'; |
| 162 | } |
| 163 | |
| 164 | return false; |
| 165 | }; |
| 166 | |
| 167 | // tags added by exportHtmlAdditionalTagsWithData will be exported as <span> with |
| 168 | // data attributes |
no test coverage detected