{"action":"created","issue":{"url":"https://api.github.com/repos/sparksuite/simplemde-markdown-editor/issues/633","repository_url":"https://api.github.com/repos/sparksuite/simplemde-markdown-editor","labels_url":"https://api.github.com/repos/sparksuite/simplemde-markdown-editor/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/sparksuite/simplemde-markdown-editor/issues/633/comments","events_url":"https://api.github.com/repos/sparksuite/simplemde-markdown-editor/issues/633/events","html_url":"https://github.com/sparksuite/simplemde-markdown-editor/issues/633","id":256372632,"number":633,"title":"Document preview is ineffective","user":{"login":"zipang","id":658082,"avatar_url":"https://avatars3.githubusercontent.com/u/658082?v=4","gravatar_id":"","url":"https://api.github.com/users/zipang","html_url":"https://github.com/zipang","followers_url":"https://api.github.com/users/zipang/followers","following_url":"https://api.github.com/users/zipang/following{/other_user}","gists_url":"https://api.github.com/users/zipang/gists{/gist_id}","starred_url":"https://api.github.com/users/zipang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zipang/subscriptions","organizations_url":"https://api.github.com/users/zipang/orgs","repos_url":"https://api.github.com/users/zipang/repos","events_url":"https://api.github.com/users/zipang/events{/privacy}","received_events_url":"https://api.github.com/users/zipang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-08T21:11:19Z","updated_at":"2017-12-03T10:21:18Z","closed_at":null,"author_association":"NONE","body":"If i have a text document, with resource heavy markdown extensions like _videos_, or _maths formulas_ like in [HackMD](https://hackmd.io), every time i change a single letter in my text, the whole preview zone is repainted with `innerHTML` being overwritten.\r\nSo, all the embedded iframes are destroyed and recreated again.\r\nIt is not usable at all.\r\nDemo here : https://zipang.github.io/markdown-bundle/demo/simplemde.html\r\n"},"comment":{"url":"https://api.github.com/repos/sparksuite/simplemde-markdown-editor/issues/comments/348754216","html_url":"https://github.com/sparksuite/simplemde-markdown-editor/issues/633#issuecomment-348754216","issue_url":"https://api.github.com/repos/sparksuite/simplemde-markdown-editor/issues/633","id":348754216,"user":{"login":"zipang","id":658082,"avatar_url":"https://avatars3.githubusercontent.com/u/658082?v=4","gravatar_id":"","url":"https://api.github.com/users/zipang","html_url":"https://github.com/zipang","followers_url":"https://api.github.com/users/zipang/followers","following_url":"https://api.github.com/users/zipang/following{/other_user}","gists_url":"https://api.github.com/users/zipang/gists{/gist_id}","starred_url":"https://api.github.com/users/zipang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zipang/subscriptions","organizations_url":"https://api.github.com/users/zipang/orgs","repos_url":"https://api.github.com/users/zipang/repos","events_url":"https://api.github.com/users/zipang/events{/privacy}","received_events_url":"https://api.github.com/users/zipang/received_events","type":"User","site_admin":false},"created_at":"2017-12-03T10:21:18Z","updated_at":"2017-12-03T10:21:18Z","author_association":"NONE","body":"@fresheneesz : you can specify your own markdown render method when invoking simplemde : \r\n```\r\nvar simplemde = new SimpleMDE({\r\n\telement: document.getElementById(\"editor\"),\r\n\t// (...)\r\n\tpreviewRender: myMarkdownRenderer\r\n});\r\n```\r\nIn my [markdown-bundle](https://zipang.github.io/markdown-bundle/) demo i use [markdown-it](https://github.com/markdown-it/markdown-it) with a bunch of plugins like latex..\r\n"}}
{"actor":{"display_login":"zipang"}}