changed the strategy for creating the markdown text
fixed the failing tests after the last commit