Rens Oliemans <[email protected]> writes:

> I don't have a JS program that shows only one of the two options yet.

Maybe we even do not have to use JS. A CSS switch might work.

> You can try this version of worg on https://files.rensoliemans.nl/worg/, but I
> promise nothing about keeping it up-to-date or reliably online, it's just to
> see how these alternative links look.

Looks good.

> There are a couple of known limitations:
>     -  Some github gists automatically redirect appropriately (f.e.,
>     https://gist.github.com/4343164 redirects to
>     https://gist.github.com/tonyday567/4343164). gothub only supports the
>     "complete" url (/user/gistid). Those gist urls aren't supported yet.
>     - github supports two way of forcing the "raw" file, via
>     raw.github.com/... and via github.com/...?raw=true, I currently only
>     convert the first one.
>     - github issues pages are not rewritten, see above.

I am wondering whether such unconvertable links might be captured when
publishing with --debug flag.

>  publish.sh | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 89 insertions(+)

This is complex enough to warrant a separate file I think.

> +(setq libredirect-url 
> "https://raw.githubusercontent.com/libredirect/instances/main/data.json";
> +      libredirect-data nil)

defvar would be more canonical.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to