(text:string)
| 169 | //--------------------------------------------------------- |
| 170 | |
| 171 | export function dasherize(text:string) { |
| 172 | if(text[0] === "/") text = text.slice(1); |
| 173 | return text.replace(/\//g, "-"); |
| 174 | } |
| 175 | |
| 176 | function gistIdFromUrl(url:string) { |
| 177 | if(url.indexOf("gist.github.com") !== -1 || |