Skip to content

Commit

Permalink
Addon-docs: Preserve Source indentation by default (#9513)
Browse files Browse the repository at this point in the history
Addon-docs: Preserve Source indentation by default
  • Loading branch information
shilman authored Jan 18, 2020
2 parents 51d526f + 0bad835 commit 93afd7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/components/src/blocks/Source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ const Source: FunctionComponent<SourceProps> = props => {
return <ThemeProvider theme={convert(overrideTheme)}>{syntaxHighlighter}</ThemeProvider>;
};

Source.defaultProps = {
format: false,
};
export { Source };

0 comments on commit 93afd7f

Please sign in to comment.