It is well known that the continued fraction expansion of a quadratic irrational number is ultimately periodic. We prove a similar result for power series. If a power series f over a finite field satisfies a quadratic equation, then the Hankel continued fraction is ultimately periodic. As an application, we derive the Hankel determinants of several automatic sequences, in particular, the regular paperfolding sequence. Thus we provide an automatic proof of a result obtained by Guo, Wu and Wen, which was conjectured by Coons–Vrbik.