sync with textual 5 stuff. inline images and the topic bar are not working correctly yet :(