Markdown Best Practices
Ed-Fi technical documentation is increasingly moving toward Markdown-flavored text files stored alongside the source code. While GitHub and some preview utilities will provide beautiful styling to Markdown, there is value in applying good pure-text styling for easy readability without the preview. Indeed, that is the true value of Markdown - the brain can interpret the pure-text styling with ease, even while reading in a command prompt with no graphical user interface.
Tool Recommendationβ
Visual Studio Code is a terrific Markdown editor, though it is not required. TheΒ markdownlint extension will help identify and solve many stylistic problems and is highly recommended. Some other potentially useful VS Code extensions:
- Markdown Lint
- Markdown All in One
- Markdown Emoji
- Markdown Preview Mermaid Support
- Rewrap - the most important and useful extension in this list, as it helps avoid hard-to-read long lines.
Style Guideβ
Please see Google's markdown style guide.
Diagrammingβ
Many diagrams can be represented in text form with MermaidJs. This is the
preferred format for diagrams. However, there are cases where a more robust tool
might be in order. If you feel that MermaidJs will not suffice, then please use
https://draw.io to create your diagram. Save theΒ .drawio
file in the same source code repository so that others can edit it in the
future. Export the diagram or take a screenshot to get a plain image file that
can be saved with the markdown file and referenced through the proper syntax:
![image caption text](path/to/imag.jpg)
.