replace index with markdown