Fix an issue when generating regular markdown pages