Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Commit

Permalink
fix(docs): removed parenthesis from fullpage links (#28)
Browse files Browse the repository at this point in the history
* fix(docs): removed parenthesis from fullpage links

* fix(docs): updated fullscreenLinks with slugger
  • Loading branch information
evwilkin authored and redallen committed Oct 30, 2019
1 parent a2cd3d4 commit 8cab36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-theme-patternfly-org/components/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Example = props => {
const html = Prism.highlight(children, Prism.languages.javascript, 'javascript');
return <pre dangerouslySetInnerHTML={{ __html: html }} />;
}
const fullscreenLink = `${location.pathname}/${title.toLowerCase()}`;
const fullscreenLink = `${location.pathname}/${slugger(title.toLowerCase())}`;
const scope = useMDXScope();
const codeBoxParams = getParameters(
props.html
Expand Down

0 comments on commit 8cab36e

Please sign in to comment.