Add class tag to formulas
Images that appear as figures
are treated as full-page images (current state as per Pagedjs algorithm). The problem is that we don't know the difference between images or formulas in paragraph text, given that formula/images do not have defining class tag.