Learn Documenting / Reference - Markdown
Markdown files are simple text files with embedded formatting markup text. This documentation is created using Markdown and the MkDocs software.
- Markdown Overview
- Benefits of Markdown
- Limitations of Markdown
- When to Use Markdown
- When Not to Use Markdown
- Markdown Tools
Markdown Overview
See:
Benefits of Markdown
- Markdown files are simple text files and can be edited with a text editor.
- Markdown files can often be understood when edited with a text editor, even without formatting output. Therefore, Markdown files are similar to README text files.
- Markdown can be converted to HTML and therefore can replace more complex HTML in many applications. For example, Mkdocs source content is written in Markdown and gets converted to static HTML websites.
- Many tools now recognize Markdown and are migrating to its use as a preferred or default option. For example, Markdown files in a GitHub repository will automatically be formatted and displayed.
- Markdown files are simple and people require little training to attain proficiency using Markdown.
- Versions of Markdown files can be easily tracked in a version control system such as Git. Differences between versions can be easily pinpointed, compared to binary files such as Word and PDF that are essentially "blobs" of encoded text.
- Because Markdown is an open standard, there are many open source and commercial software tools.
Limitations of Markdown
- Formatting in Markdown files is simple by design and may not meet all formatting needs. Complex formatting such as equations requires additional tools and/or formatting tricks such as saving to an image or embedding raw HTML into the Markdown. This is a topic of ongoing discussion.
- People may not be familiar with Markdown or related software tools.
- Although Markdown files can be emailed, they are better suited for online collaborative platforms. This limitation may not be as much of a factor in circles where people are comfortable with Markdown.
- Markdown editors that show the formatted text parallel to the input may not be available. Such tools are becoming more common and therefore this limitation will diminish over time.
When to Use Markdown
The following are recommendations for when to use Markdown:
- If the overall environment favors Markdown, such as Git repositories.
- When creating navigable, interactive static websites such as software manuals - MkDocs is a good option.
- When an upgrade to standard text README files is appropriate, in particular when files can be moved to a version control system such as Git/GitHub.
When Not to Use Markdown
- When a traditional memo/report document is needed - Word/PDF are probably better in this case.
Markdown Tools
- Editors:
- Static website generator: