In Hartshorne's paper On the de Rham cohomology of algebraic varieties (Publ. Math. IHES 45 (1975)), he defines the algebraic de Rham cohomology of a singular variety $Z$ in characteristic $0$ by embedding it in a smooth variety $X$ and taking the hypercohomology of the formal completion of $\Omega^\bullet_X$ along $Z$. In the introduction to that paper (section 0.5), he says explicitly that he doesn't construct a Hodge filtration on $\mathrm{H}^n_{\mathrm{dR}}(Z/K)$. Does anyone know if there is anywhere in the literature which constructs this filtration? I particularly want this Hodge filtration to be defined over the base field $K$, but to agree with the one from Hodge theory when $K=\mathbb{C}$.
(This is the sort of thing which doesn't seem to hard to work out directly, but feels like it should be in the literature somewhere. But I didn't find anything when I searched.)