Skip to content

Commit

Permalink
Fix issue with captions only include first word
Browse files Browse the repository at this point in the history
  • Loading branch information
BruOp committed Aug 19, 2019
1 parent a42fb35 commit 517daee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = ({markdownAST}, pluginOptions) => {
const className = pluginOptions.className
? pluginOptions.className
: "gatsbyRemarkImagesGrid"
let [, columnsCount, figcaption] = node.lang.split("|")
let [, columnsCount, figcaption] = (node.lang + " " + node.meta).split("|")

if (!columnsCount) {
columnsCount = 1
Expand Down

0 comments on commit 517daee

Please sign in to comment.