format markdown in logging better