strip text prior to markdown rendering