* check extensions before content
* explicitly denote enry hack until upstream fixes[1]
* comment each case for the url parts deconstruction trick
* use fname as title when no title exists
* better title detection logic
* kill a random empty line in inline CSS
* rename sp (split) to pathComponents
[1]: https://github.com/go-enry/go-enry/pull/154
Signed-off-by: Xe Iaso <xe@tailscale.com>
This uses the library blackfriday[1] to convert markdown to HTML. This
is a naive implementation, but it will do for now.
[1]: https://pkg.go.dev/github.com/russross/blackfriday
Signed-off-by: Xe Iaso <xe@tailscale.com>
cmd/tailpaste:
- better handle the error cases from web
cmd/web:
- Implement list of pastes
- Add contextual navbar for paste list and meta help
- Add error page rendering
- Add paginated paste listing
- Add created_at column
- Make paster information less janky on per-paste views
Signed-off-by: Xe Iaso <xe@tailscale.com>