actually detect tags within code blocks correctly