Fix BlockHandler

After setting MD files to open as HTMLX,
I can finally test this and spot bugs.