Markdown is great for writing documentation. GitHub natively displays it in a very pleasing, consistent way, it’s easily rendered into a number of other formats, and it’s easy to read when it’s not rendered (ie. as text). As with anything that supports rich formatting, however, the best format is not always clear, and understanding documentation is particularly hard when there isn’t a clear, consistent style used throughout a set of documentation.
To make sure the Fili documentation is all on the same page (not literally…), here are some general guidelines for Markdown formatting:
===
and ---
respectively) rather than by preceding hashes
(#
).>
at the start of the line).Links should use the reference-style:
[link text][link reference]
[example link text][example link]
[link reference]: <actual url>
[example link]: http://example.com
rather than the in-line style:
[example](http://example.com)
Link references should be organized at the bottom of the document by link reference in alphabetical order with a blank line between each letter of the alphabet:
[an example link]: http://example.com
[another example link]: http://example.com
[be the example link you were meant to be]: http://example.com
[example link]: http://example.com
In-line links may be used when linking to other markdown documents in the same location. For example:
[example link](sibling-document)
References should be specified explicitly. The following all mean the same in GitHub flavored Markdown:
[example link][example link] <-- Preferred
[example link]
[example link][]
[example link]: http://example.com
However the first (specifying the reference explicitly) decouples the link text from the reference name, and thus is more resilient to change.
\
`). Class names are a great example of code-like entities that should be emphasized with
backticks._
).**
).***
).