Linear math: can't seem to rotate translated coordinates

I’m using linmath.h:
I need to scale, translate and then rotate a quad. I have also tried this function.

I construct the matrix like this: The commented lines show what I did previously to achieve the same with GLM.

The problem is that the rotation happens before the translation. What I’d expect is that the rotation function should apply on the already translated coordinates and thus also change the translation. How can I achieve this? Thanks.