switch client markdown preview to markedjs