Generation of diagram and flowchart from text in a similar manner as markdown