Tasks can be exported from most places. They’ll export in a Markdown format, and will also contain information such as the Plan, Deadline, Tags, Dependency, Notes, etc.
If you export a List with Headings, those will also export, with the tasks, in a Markdown format.