diff --git a/ui/frontend/Output/Gist.tsx b/ui/frontend/Output/Gist.tsx index 1ac3e566b..4033b9515 100644 --- a/ui/frontend/Output/Gist.tsx +++ b/ui/frontend/Output/Gist.tsx @@ -57,6 +57,7 @@ const Links: React.SFC = () => { const gistUrl = useSelector((state: State) => state.output.gist.url); const permalink = useSelector(selectors.permalinkSelector); const urloUrl = useSelector(selectors.urloUrlSelector); + const markdownSnippet = useSelector(selectors.snippetSelector); return ( @@ -64,6 +65,7 @@ const Links: React.SFC = () => { Direct link to the gist Embedded code in link Open a new thread in the Rust user forum + Markdown snippet with all the information ); }; diff --git a/ui/frontend/selectors/index.ts b/ui/frontend/selectors/index.ts index da9b1e0e2..9a9fb7fe4 100644 --- a/ui/frontend/selectors/index.ts +++ b/ui/frontend/selectors/index.ts @@ -194,7 +194,7 @@ const maybeOutput = (code: string, whenPresent: (_: string) => void) => { if (val.length !== 0) { whenPresent(code); } }; -const snippetSelector = createSelector( +export const snippetSelector = createSelector( gistSelector, permalinkSelector, (gist, permalink) => { let snippet =