v0.9.0
guide / Local files, Markdown and other content

Local files, Markdown and other content

wr shows more than web pages:

v0.9.0 12 / 21 1 min read docs/GUIDE.md
ContentHow it is shown
HTMLthe article, formatted
Markdown (.md, or served as text/markdown)rendered as Markdown
plain text (.txt, or served as text/plain)in a code block
JSON, XMLin a code block, highlighted
images, PDFs, anything elsenot shown: you get a notice, and x opens it in your real browser

Local files work the same way as remote ones: wr notes.md, wr ~/docs/page.html, wr ./README.md, wr file:///etc/hosts. Links between local HTML files work, f labels them like any other link, and r reads the file again from disk.