{"action":"opened","issue":{"url":"https://api.github.com/repos/leanote/leanote/issues/355","repository_url":"https://api.github.com/repos/leanote/leanote","labels_url":"https://api.github.com/repos/leanote/leanote/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/leanote/leanote/issues/355/comments","events_url":"https://api.github.com/repos/leanote/leanote/issues/355/events","html_url":"https://github.com/leanote/leanote/issues/355","id":154618657,"number":355,"title":"更换site.url后，markdown的图片地址解析没有更新","user":{"login":"myme5261314","id":1814831,"avatar_url":"https://avatars.githubusercontent.com/u/1814831?v=3","gravatar_id":"","url":"https://api.github.com/users/myme5261314","html_url":"https://github.com/myme5261314","followers_url":"https://api.github.com/users/myme5261314/followers","following_url":"https://api.github.com/users/myme5261314/following{/other_user}","gists_url":"https://api.github.com/users/myme5261314/gists{/gist_id}","starred_url":"https://api.github.com/users/myme5261314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myme5261314/subscriptions","organizations_url":"https://api.github.com/users/myme5261314/orgs","repos_url":"https://api.github.com/users/myme5261314/repos","events_url":"https://api.github.com/users/myme5261314/events{/privacy}","received_events_url":"https://api.github.com/users/myme5261314/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-13T02:03:28Z","updated_at":"2016-05-13T02:03:28Z","closed_at":null,"body":"例如我原本将leanote架设在xxx.com，然后在上面写了很多markdown的note，然后我换了网址，在app.conf中将site.url从xxx.com改为blog.xxx.com，然后会发现leanote客户端中图片显示正常，因为其内容为类似如下内容：\r\n```\r\n![jigsaw puzzle games](leanote://file/getImage?fileId=568dc965051c43797e000000)\r\n```\r\n而网页上却显示不正常，因为其仍被解析为类似如下内容\r\n```\r\nhttp://xxx.com/api/file/getImage?fileId=56ca7e3ddec3701ca96a8d49\r\n```\r\n而应该是\r\n```\r\nhttp://blog.xxx.com/api/file/getImage?fileId=56ca7e3ddec3701ca96a8d49\r\n```\r\n一个测试成功的解决办法是将所有笔记在leanote客户端中用markdown随便编辑加入一些内容，然后同步，然后图片就显示正常了。这里有一点，在网页note列表页面，还是会不更新解决结果导致图片链接失效。\r\n> ![image](https://cloud.githubusercontent.com/assets/1814831/15235831/8a24cabc-18f1-11e6-9fb8-a2a7c747ccce.png)\r\n\r\n望跟进并修复。"}}