Closed JounQin closed 3 years ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
@wooorm Is there an open API from remark
itself to resolve its config?
unified-engine
does all that stuff, specifically, this file: https://github.com/unifiedjs/unified-engine/blob/9bd9c30ffb4e0e3b28c06451e40ea429abf95662/lib/configuration.js#L28. Configuration is here: https://github.com/remarkjs/remark/blob/80658e9e601452f0d97fa71ba8b7ba1ed43cdec7/packages/remark-cli/cli.js#L11-L23.
There’s some chatter on updating to use cosmiconfig or so soon, though: https://github.com/remarkjs/remark/issues/654.
Also: I’m rewriting everything in ESM + JSDoc based TS right now. So expect types added there in the near future too.