{"action":"created","issue":{"url":"https://api.github.com/repos/yccphp/laravel-5-markdown-editor/issues/3","labels_url":"https://api.github.com/repos/yccphp/laravel-5-markdown-editor/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/yccphp/laravel-5-markdown-editor/issues/3/comments","events_url":"https://api.github.com/repos/yccphp/laravel-5-markdown-editor/issues/3/events","html_url":"https://github.com/yccphp/laravel-5-markdown-editor/issues/3","id":78410865,"number":3,"title":"Markdown转HTML后图片显示优化推荐","user":{"login":"wedojava","id":9837993,"avatar_url":"https://avatars.githubusercontent.com/u/9837993?v=3","gravatar_id":"","url":"https://api.github.com/users/wedojava","html_url":"https://github.com/wedojava","followers_url":"https://api.github.com/users/wedojava/followers","following_url":"https://api.github.com/users/wedojava/following{/other_user}","gists_url":"https://api.github.com/users/wedojava/gists{/gist_id}","starred_url":"https://api.github.com/users/wedojava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wedojava/subscriptions","organizations_url":"https://api.github.com/users/wedojava/orgs","repos_url":"https://api.github.com/users/wedojava/repos","events_url":"https://api.github.com/users/wedojava/events{/privacy}","received_events_url":"https://api.github.com/users/wedojava/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-20T07:27:48Z","updated_at":"2015-08-23T05:27:49Z","closed_at":null,"body":"推荐两个js图片显示效果插件:\r\n\r\n \r\n  1.华丽全面但稍微复杂点的:https://github.com/fancyapps/fancyBox\r\n  2.简洁明快且实现简单点的:https://github.com/fat/zoom.js\r\n\r\n我是用的第二个\r\n\r\n修改:\r\n    只需要修改/vendor/yuanchao/laravel-5-markdown-editor/src/Parsedown.php里`inlineImage()`方法:\r\n```\r\n'attributes' => array(\r\n                    'src' => $Link['element']['attributes']['href'],\r\n                    'alt' => $Link['element']['text'],\r\n                    'data-action'=>\"zoom\",\r\n                    'width' => '500',\r\n                ),\r\n```\r\n`'data-action'=>\"zoom\",`如果用第二个链接,这个是关键,我用的第二个.\r\n\r\n然后在需要该效果的页面加载(我把相关的js和css放到了public/js/imgInZoomByJQuery目录下了):\r\n```\r\n<link href=\"{{ asset('/js/imgInZoomByJQuery/zoom.css') }}\" rel=\"stylesheet\">\r\n<script type=\"text/javascript\"  src=\"{{asset('/js/imgInZoomByJQuery/transition.js')}}\"></script>\r\n<script type=\"text/javascript\"  src=\"{{asset('/js/imgInZoomByJQuery/zoom.min.js')}}\"></script>\r\n```\r\n\r\n希望能帮到需要的人"},"comment":{"url":"https://api.github.com/repos/yccphp/laravel-5-markdown-editor/issues/comments/133783962","html_url":"https://github.com/yccphp/laravel-5-markdown-editor/issues/3#issuecomment-133783962","issue_url":"https://api.github.com/repos/yccphp/laravel-5-markdown-editor/issues/3","id":133783962,"user":{"login":"wedojava","id":9837993,"avatar_url":"https://avatars.githubusercontent.com/u/9837993?v=3","gravatar_id":"","url":"https://api.github.com/users/wedojava","html_url":"https://github.com/wedojava","followers_url":"https://api.github.com/users/wedojava/followers","following_url":"https://api.github.com/users/wedojava/following{/other_user}","gists_url":"https://api.github.com/users/wedojava/gists{/gist_id}","starred_url":"https://api.github.com/users/wedojava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wedojava/subscriptions","organizations_url":"https://api.github.com/users/wedojava/orgs","repos_url":"https://api.github.com/users/wedojava/repos","events_url":"https://api.github.com/users/wedojava/events{/privacy}","received_events_url":"https://api.github.com/users/wedojava/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T05:27:49Z","updated_at":"2015-08-23T05:27:49Z","body":"有毅力,感谢分享,脚本很多时候很奇怪,有些奇怪的问题真是需要毅力,辛苦啦,造福万民哈"}}