(selectorDom, articleTitle)
| 14 | }) |
| 15 | |
| 16 | const handleSetPost = (selectorDom, articleTitle) => { |
| 17 | const content = turndownService.turndown(selectorDom) |
| 18 | const post = { |
| 19 | content: content, |
| 20 | title: articleTitle |
| 21 | } |
| 22 | setPost(JSON.stringify(post)) |
| 23 | window.open("https://md.code-box.fun", "_blank") |
| 24 | } |
| 25 | |
| 26 | return [post, handleSetPost] |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected