This explanation nails how to do it though: http://www.imagemagick.org/Usage/compose/#divide
Divide a blurred copy by the original and you end up with effectively an adaptive-normalize filter where the result is nice and clear with the shadows and uneven lighting left behind.
Also though, there are tools like https://miro.com and https://beta.plectica.com which kinda make this obsolete for many common use cases.