How to make MarkupLM accept full HTML code of a webpage?

So currently the MarkupLM have a input chunk limit of 512. But in my problem, I want it to accept the whole HTML code of a webpage(“”) and answer any questions that I ask. Whats the easy way to do it?