(content: string, contentType: string, format: Format)
| 109 | mime === "application/javascript" || |
| 110 | mime === "application/x-javascript" |
| 111 | const convert = (content: string, contentType: string, format: Format) => { |
| 112 | if (!contentType.includes("text/html")) return content |
| 113 | if (format === "markdown") return convertHTMLToMarkdown(content) |
| 114 | if (format === "text") return extractTextFromHTML(content) |
| 115 | return content |
| 116 | } |
| 117 | |
| 118 | const layer = Layer.effectDiscard( |
| 119 | Effect.gen(function* () { |
no test coverage detected