{"action":"created","issue":{"url":"https://api.github.com/repos/todvora/gitbook-plugin-image-captions/issues/13","repository_url":"https://api.github.com/repos/todvora/gitbook-plugin-image-captions","labels_url":"https://api.github.com/repos/todvora/gitbook-plugin-image-captions/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/todvora/gitbook-plugin-image-captions/issues/13/comments","events_url":"https://api.github.com/repos/todvora/gitbook-plugin-image-captions/issues/13/events","html_url":"https://github.com/todvora/gitbook-plugin-image-captions/issues/13","id":157028526,"number":13,"title":"Cannot use custom caption and align config variables","user":{"login":"eddively","id":4593434,"avatar_url":"https://avatars.githubusercontent.com/u/4593434?v=3","gravatar_id":"","url":"https://api.github.com/users/eddively","html_url":"https://github.com/eddively","followers_url":"https://api.github.com/users/eddively/followers","following_url":"https://api.github.com/users/eddively/following{/other_user}","gists_url":"https://api.github.com/users/eddively/gists{/gist_id}","starred_url":"https://api.github.com/users/eddively/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddively/subscriptions","organizations_url":"https://api.github.com/users/eddively/orgs","repos_url":"https://api.github.com/users/eddively/repos","events_url":"https://api.github.com/users/eddively/events{/privacy}","received_events_url":"https://api.github.com/users/eddively/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-26T16:46:58Z","updated_at":"2016-05-26T17:31:11Z","closed_at":null,"body":"`{\r\n    \"plugins\": [\r\n        \"youtubex\",\r\n        \"search\",\r\n        \"sectionx\",\r\n        \"-sharing\",\r\n        \"image-captions\"\r\n    ],\r\n    \"pluginsConfig\": {\r\n      \"image-captions\": {\r\n       \"caption\": \"Image Description - _CAPTION_\"\r\n      }\r\n    }\r\n}\r\n`\r\n\r\nThis works.\r\n\r\n`{\r\n    \"plugins\": [\r\n        \"youtubex\",\r\n        \"search\",\r\n        \"sectionx\",\r\n        \"-sharing\",\r\n        \"image-captions\"\r\n    ],\r\n    \"pluginsConfig\": {\r\n      \"image-captions\": {\r\n       \"align\": \"left\"\r\n      }\r\n    }\r\n}\r\n`\r\nThis works.\r\n\r\nBut,\r\n`{\r\n    \"plugins\": [\r\n        \"youtubex\",\r\n        \"search\",\r\n        \"sectionx\",\r\n        \"-sharing\",\r\n        \"image-captions\"\r\n    ],\r\n    \"pluginsConfig\": {\r\n      \"image-captions\": {\r\n      \"caption\": \"Image Description - _CAPTION_\"\r\n       \"align\": \"left\"\r\n      }\r\n    }\r\n}\r\n`\r\nFails. Am I missing something?"},"comment":{"url":"https://api.github.com/repos/todvora/gitbook-plugin-image-captions/issues/comments/221939438","html_url":"https://github.com/todvora/gitbook-plugin-image-captions/issues/13#issuecomment-221939438","issue_url":"https://api.github.com/repos/todvora/gitbook-plugin-image-captions/issues/13","id":221939438,"user":{"login":"todvora","id":4102775,"avatar_url":"https://avatars.githubusercontent.com/u/4102775?v=3","gravatar_id":"","url":"https://api.github.com/users/todvora","html_url":"https://github.com/todvora","followers_url":"https://api.github.com/users/todvora/followers","following_url":"https://api.github.com/users/todvora/following{/other_user}","gists_url":"https://api.github.com/users/todvora/gists{/gist_id}","starred_url":"https://api.github.com/users/todvora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todvora/subscriptions","organizations_url":"https://api.github.com/users/todvora/orgs","repos_url":"https://api.github.com/users/todvora/repos","events_url":"https://api.github.com/users/todvora/events{/privacy}","received_events_url":"https://api.github.com/users/todvora/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T17:31:10Z","updated_at":"2016-05-26T17:31:10Z","body":"Hi,\r\nI just added [a test](https://github.com/todvora/gitbook-plugin-image-captions/commit/6283070d187e77e52a15ab0d29812f3f108e8a91) to verify correct handling of both ```caption``` and ```align``` attribute together and everything seems OK.\r\n\r\nThe problem is probably in the invalid JSON configuration (cannot be parsed). When I take exactly the failing config and let it validate (for example [here](http://jsonlint.com/)):\r\n\r\n```\r\nError: Parse error on line 5:\r\n...ion - _CAPTION_\"\t\t\t\"align\": \"left\"\t\t}\r\n----------------------^\r\nExpecting 'EOF', '}', ':', ',', ']', got 'STRING'\r\n```\r\nThere is missing a comma after the ```\"Image Description - _CAPTION_\"``` string, which should separate both attributes.\r\n\r\nLet me know please, if this resolves your issue.\r\n\r\nBest regards,\r\nTomas"}}
{"actor":{"display_login":"todvora"}}