joshuatz / j-prism-toolbar

A "Windows-Like" toolbar for PrismJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve appearance of "Remote Source" indicator

joshuatz opened this issue · comments

It has been working great with raw Github content, but it would be nice if the auto-generated link displayed to the user pointed at the browse-able repo page, and not the raw content.

For example, right now if you feed in a raw github URL as the source, it gets echoed right back out as a clickable link:

Remote Source: https://raw.githubusercontent.com/{USER}/{REPO}/master/src/index.js

It would be nice, if

  • The toolbar reverse mapped raw.githubusercontent URLs to their source URLs
    • And/or
  • Given a regular Github URL, mapped it to the raw.githubusercontent fetchable URL

Fixed by Pull #5