markdown and css refactor