Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |
// moment.js locale configuration | |
// locale : brazilian portuguese (pt-br) | |
// author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira | |
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['moment'], factory); // AMD | |
} else if (typeof exports === 'object') { | |
module.exports = factory(require('../moment')); // Node | |
} else { |
I found that the "best" way is to use HTML, as it works both in Readme/.md files and also in comments (within Issues, Gist...)
E.g. when adding/editing a comment (within Issues, Gist...) :

with <img src="https://your-image-url.type" width="100" height="100">
As mentioned by @cbestow (thanks!), it's not mandatory to set both width
and height
. If only one is set, the other will be adjusted accordingly to preserve the aspect ratio of the image.
import axios from "axios"; | |
import { getBaseURL } from "./config"; | |
export const client = axios.create({ | |
baseURL: getBaseURL() | |
}); | |
// for multiple requests | |
let isRefreshing = false; | |
let failedQueue = []; |