Skip to content

Commit

Permalink
gatsby-remark-prismjs: rename config option back (#10243)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored and DSchau committed Dec 3, 2018
1 parent 67eeee7 commit cda69c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby-remark-prismjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ plugins: [
// Defaults to false.
// If you wish to only show line numbers on certain code blocks,
// leave false and use the {numberLines: true} syntax below
showLineNumbersGlobal: false,
showLineNumbers: false,
// If setting this to true, the parser won't handle and highlight inline
// code used in markdown i.e. single backtick code like `this`.
noInlineHighlight: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-remark-prismjs/src/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe(`remark prism plugin`, () => {
it(`adds line-number markup when configured globally`, () => {
const code = `\`\`\`js\n//.foo { \ncolor: red;\n }\``
const markdownAST = remark.parse(code)
plugin({ markdownAST }, { showLineNumbersGlobal: true })
plugin({ markdownAST }, { showLineNumbers: true })
expect(markdownAST).toMatchSnapshot()
})

Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-remark-prismjs/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = (
inlineCodeMarker = null,
aliases = {},
noInlineHighlight = false,
showLineNumbersGlobal = false,
showLineNumbers: showLineNumbersGlobal = false,
} = {}
) => {
const normalizeLanguage = lang => {
Expand Down

0 comments on commit cda69c0

Please sign in to comment.