{"action":"created","issue":{"url":"https://api.github.com/repos/gollum/gollum/issues/838","repository_url":"https://api.github.com/repos/gollum/gollum","labels_url":"https://api.github.com/repos/gollum/gollum/issues/838/labels{/name}","comments_url":"https://api.github.com/repos/gollum/gollum/issues/838/comments","events_url":"https://api.github.com/repos/gollum/gollum/issues/838/events","html_url":"https://github.com/gollum/gollum/issues/838","id":37132552,"node_id":"MDU6SXNzdWUzNzEzMjU1Mg==","number":838,"title":"Adding frame to an image prevents it from being centered","user":{"login":"penguinpowernz","id":4642414,"node_id":"MDQ6VXNlcjQ2NDI0MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4642414?v=4","gravatar_id":"","url":"https://api.github.com/users/penguinpowernz","html_url":"https://github.com/penguinpowernz","followers_url":"https://api.github.com/users/penguinpowernz/followers","following_url":"https://api.github.com/users/penguinpowernz/following{/other_user}","gists_url":"https://api.github.com/users/penguinpowernz/gists{/gist_id}","starred_url":"https://api.github.com/users/penguinpowernz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penguinpowernz/subscriptions","organizations_url":"https://api.github.com/users/penguinpowernz/orgs","repos_url":"https://api.github.com/users/penguinpowernz/repos","events_url":"https://api.github.com/users/penguinpowernz/events{/privacy}","received_events_url":"https://api.github.com/users/penguinpowernz/received_events","type":"User","site_admin":false},"labels":[{"id":182011013,"node_id":"MDU6TGFiZWwxODIwMTEwMTM=","url":"https://api.github.com/repos/gollum/gollum/labels/CSS%20styling","name":"CSS styling","color":"eb6420","default":false},{"id":43162,"node_id":"MDU6TGFiZWw0MzE2Mg==","url":"https://api.github.com/repos/gollum/gollum/labels/bug","name":"bug","color":"ff3636","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/gollum/gollum/milestones/9","html_url":"https://github.com/gollum/gollum/milestone/9","labels_url":"https://api.github.com/repos/gollum/gollum/milestones/9/labels","id":1888880,"node_id":"MDk6TWlsZXN0b25lMTg4ODg4MA==","number":9,"title":"5.0","description":"","creator":{"login":"bartkamphorst","id":571173,"node_id":"MDQ6VXNlcjU3MTE3Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/571173?v=4","gravatar_id":"","url":"https://api.github.com/users/bartkamphorst","html_url":"https://github.com/bartkamphorst","followers_url":"https://api.github.com/users/bartkamphorst/followers","following_url":"https://api.github.com/users/bartkamphorst/following{/other_user}","gists_url":"https://api.github.com/users/bartkamphorst/gists{/gist_id}","starred_url":"https://api.github.com/users/bartkamphorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartkamphorst/subscriptions","organizations_url":"https://api.github.com/users/bartkamphorst/orgs","repos_url":"https://api.github.com/users/bartkamphorst/repos","events_url":"https://api.github.com/users/bartkamphorst/events{/privacy}","received_events_url":"https://api.github.com/users/bartkamphorst/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":49,"state":"open","created_at":"2016-07-18T09:03:28Z","updated_at":"2019-08-22T08:41:33Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2014-07-03T23:34:04Z","updated_at":"2019-08-23T17:52:38Z","closed_at":null,"author_association":"NONE","body":"When you do `[[/uploads/example.png|frame|align=center]]` one would expect it to be framed and centered, however this is not the case.  I tried switching the arguments around to be like this:  `[[/uploads/example.png|align=center|frame]]` but that didn't work either (turns out if frame is specified the only class on the generated span is `frame` whereas the `align=center` causes the class `align-center` to be used).\n\nThis is the HTML generated:\n\n``` html\n<span class=\"frame\">\n  <span>\n    <img src=\"/uploads/nav-alerts.png\">\n  </span>\n</span>\n```\n\nI tried to figure out what was causing this using the Chrome developers tools.  At first I thought it was because everything was a created by the filter/macro was `display: block` but disabling that on both the `span`s and the `img` didn't work.  I tried setting `margin: 0px auto` on them but that didn't work either.  I tried making the class on the generated span `frame align-center` but that didn't work.\n\nI even have a `custom.css` file with this rule:\n\n``` css\n.center {\n  text-align: center;\n}\n```\n\nAnd tried using the following:\n\n``` html\n<div class=\"center\">\n  [[/uploads/example.png|frame]]\n</div>\n```\n\nBut that didn't work either.\n\nI think this would be a cool feature, but I can't figure out what is causing it to not work and I don't have any more time right now to spend on this.  Maybe someone else knows what would cause this?\n"},"comment":{"url":"https://api.github.com/repos/gollum/gollum/issues/comments/524405308","html_url":"https://github.com/gollum/gollum/issues/838#issuecomment-524405308","issue_url":"https://api.github.com/repos/gollum/gollum/issues/838","id":524405308,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNDQwNTMwOA==","user":{"login":"bartkamphorst","id":571173,"node_id":"MDQ6VXNlcjU3MTE3Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/571173?v=4","gravatar_id":"","url":"https://api.github.com/users/bartkamphorst","html_url":"https://github.com/bartkamphorst","followers_url":"https://api.github.com/users/bartkamphorst/followers","following_url":"https://api.github.com/users/bartkamphorst/following{/other_user}","gists_url":"https://api.github.com/users/bartkamphorst/gists{/gist_id}","starred_url":"https://api.github.com/users/bartkamphorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartkamphorst/subscriptions","organizations_url":"https://api.github.com/users/bartkamphorst/orgs","repos_url":"https://api.github.com/users/bartkamphorst/repos","events_url":"https://api.github.com/users/bartkamphorst/events{/privacy}","received_events_url":"https://api.github.com/users/bartkamphorst/received_events","type":"User","site_admin":false},"created_at":"2019-08-23T17:52:38Z","updated_at":"2019-08-23T17:52:38Z","author_association":"MEMBER","body":"> [[img.jpg | frame alt=bla]]\r\n\r\nDepends on how it is parsed I guess. One should be able to also write [[img.jpg | frame alt = bla die bla bla other_option = 1]]. Using commas might be a safer option."}}
{"actor":{"display_login":"bartkamphorst"}}