Put links inside codeblocks on GitHub:
<pre>
import { assign, map } from '<a href="https://www.npmjs.com/package/lodash" title="Lodash on npm">🇪</a>';
<a href="https://lodash.com/docs#assign" title="assign documentation">assign</a>({ 'a': 1 }, { 'b': 2 }, { 'c': 3 });
// → { 'a': 1, 'b': 2, 'c': 3 }
<a href="https://lodash.com/docs#map" title="map documentation">map</a>([1, 2, 3], function(n) { return n * 3; });
// → [3, 6, 9]
</pre>
And we get (try clicking "lodash", "assign", and "map"):
import { assign, map } from '🌴'; assign({ 'a': 1 }, { 'b': 2 }, { 'c': 3 }); // → { 'a': 1, 'b': 2, 'c': 3 } map([1, 2, 3], function(n) { return n * 3; }); // → [3, 6, 9]
Note that it's not possible to combine with syntax highlighting (as we can't use the class
attribute).