changed generation of markdown

also added some nicer CSS
[ci skip]