Extract current code from `renderers-core` such that other packages like `nodes-from-anchor` can benefit from it and use paths as inputs.