We are sorry for the inconvenience. We have already noticed the reported issue and logged a ticket WORDPRESS-480 for rectification. We have linked your post to the ticket and will notify you as soon as it is resolved.
I found a solution. I changed the posts editor from Classic to Blocks and now it renders the docs fine.