Hunters mark works only with weapon attacks.
It used to affect magic spells that made attack rolls, back in the super early stages of the EA. Then I discovered a bug where it somehow multiplied the amount of scorching rays based on how many of the base rays hit (as in, 3 scorching rays somehow turned into 12, and upcasting it to level 3 turned 4 rays into 20), it spawned an argument that went for several hours in their discord about whether it working with magic was an intentional design choice for Greenmage, and the devs came in and said it wasn't and fixed it up real good in the following patch.