Render snippets of code intelligently from git repos
yarn add gitsnippet
GitSnippet
accepts a git
revision as a string pointing
to the appropriate file at the desired revision. You can also choose
to highlight or hide ranges of code.
import GitSnippet from 'gitsnippet';
# My Awesome Documentation
Here's what our README says about foos:
<GitSnippet
revision={"master:./README"}
highlightRange={"5-6, 14-17"}
hidelineRange={"1-3"}
/>