code: def _intermediary_to_markdown(tables, relationships):
      
      t = '\n'.join(t.to_markdown() for t in tables)
      r = '\n'.join(r.to_markdown() for r in relationships)
      return '{}\n{}'.format(t, r)
docs: Returns the er markup source in a string.