[core] Fix quark (#42457)
* intial
* update
* add convert
* fix
* style
* rm comment
* explain
* loop
* fix
* fix
* update
* Apply style fixes
* fix
* style
* update
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>