Prevent clash between edited post and layout
Remove extra tabs in markdown preview, fix leak