Add markdown support and page switch