mirror of
https://github.com/anomalyco/opencode.git
synced 2026-10-26 04:20:04 +00:00
7 lines
308 B
TypeScript
7 lines
308 B
TypeScript
import { writeSync } from "node:fs"
|
|
import { convertHTMLToMarkdown } from "../../src/tool/html-markdown"
|
|
|
|
const html = await Bun.stdin.text()
|
|
// Flush readiness before entering a conversion that may block the child event loop.
|
|
writeSync(1, "ready\n")
|
|
await Bun.write(Bun.stdout, convertHTMLToMarkdown(html))
|