fix: media links in org files not liked to media files (#12997)
fix: media links in org files not liked to media files (#12997)

* fix: media links in org files not liked to media files

* fix: write directly to io.Writer r

as suggested by code review

Co-authored-by: zeripath <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>

Co-authored-by: zeripath <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
sapk-fork/gitea,sapk-fork/gitea,vdbt/gitea,cez81/gitea,cez81/gitea,sapk-fork/gitea,vdbt/gitea,go-gitea/gitea,go-gitea/gitea,go-gitea/gitea,sapk-fork/gitea,cez81/gitea