diff --git a/components/Carbon.js b/components/Carbon.js index c8dc0da..b9607d5 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -72,7 +72,7 @@ class Carbon extends React.Component { const config = { ...DEFAULT_SETTINGS, ...this.props.config } const options = { - lineNumbers: false, + lineNumbers: config.lineNumbers, mode: this.state.language || 'plaintext', theme: config.theme, scrollBarStyle: null, diff --git a/components/Settings.js b/components/Settings.js index 76396c8..6c611a2 100644 --- a/components/Settings.js +++ b/components/Settings.js @@ -51,6 +51,11 @@ class Settings extends React.Component { enabled={this.props.enabled.widthAdjustment} onChange={this.props.onChange.bind(null, 'widthAdjustment')} /> +