Markdown is the best way to write in plain text but still create complex documents. Unlike more advanced markup languages, HTML or LaTex, for example, Markdown is simple to learn. Though initially made to export to HTML, you can export Markdown to PDF, RTF, and even DOCX depending on the app.