Revert "fix style detection for posts"

This reverts commit 4f106415296ce97e32731b4b3e31a7c92071cd6f.