It seems like Markdown works pretty well for writing API docs, where the language has a tool for generating documentation that also gets things like type signatures from the source code itself.
The result of running that tool is always API documentation, so you might need something for docs that aren’t structured that way.
The result of running that tool is always API documentation, so you might need something for docs that aren’t structured that way.