add tables and repair inline_text