custom markdown parser (marked) with macros support