Fix file endings for examples

reStructured should use reStructured for linked documents. Markdown should use Markdown for linked documents.