bugfix for pagination & add style for markdown produce