{"action":"created","issue":{"url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/366","repository_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor","labels_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/366/comments","events_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/366/events","html_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/366","id":161558690,"number":366,"title":"Allow user to configure marked options","user":{"login":"schonstal","id":73354,"avatar_url":"https://avatars.githubusercontent.com/u/73354?v=3","gravatar_id":"","url":"https://api.github.com/users/schonstal","html_url":"https://github.com/schonstal","followers_url":"https://api.github.com/users/schonstal/followers","following_url":"https://api.github.com/users/schonstal/following{/other_user}","gists_url":"https://api.github.com/users/schonstal/gists{/gist_id}","starred_url":"https://api.github.com/users/schonstal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schonstal/subscriptions","organizations_url":"https://api.github.com/users/schonstal/orgs","repos_url":"https://api.github.com/users/schonstal/repos","events_url":"https://api.github.com/users/schonstal/events{/privacy}","received_events_url":"https://api.github.com/users/schonstal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-21T22:56:43Z","updated_at":"2016-09-12T16:50:54Z","closed_at":"2016-06-22T17:57:54Z","pull_request":{"url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/pulls/366","html_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/366","diff_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/366.diff","patch_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/366.patch"},"body":"The bundled markdown compiler, marked, has a number of options that can be configured by the user. Unfortunately, all those options are hidden inside SimpleMDE, and they cannot be configured.\r\n\r\nIt can be circumvented with `previewRender`, but if you just want to use marked with different configuration options with the compiled version of SimpleMDE, you have to include an additional copy of the marked JavaScript just so you can run it with some different configuration parameters inside your `previewRender` function.\r\n\r\nThis patch allows the user to set whatever configuration parameters they would like, instead of only the ones that have been threaded through specifically by `this.options.renderingConfig`. The existing parameters remain in-tact and shouldn't break any legacy code, but the new parameters will allow the user to configure the existing renderer should they need to.\r\n\r\nJSFiddle: https://jsfiddle.net/2525aqky/1/\r\n\r\nPS: I didn't know if I should include the compiled files, so I did. It incremented some versions, so if this is an issue I can update the PR with only the code and README changes."},"comment":{"url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/comments/246412015","html_url":"https://github.com/NextStepWebs/simplemde-markdown-editor/pull/366#issuecomment-246412015","issue_url":"https://api.github.com/repos/NextStepWebs/simplemde-markdown-editor/issues/366","id":246412015,"user":{"login":"WesCossick","id":3850064,"avatar_url":"https://avatars.githubusercontent.com/u/3850064?v=3","gravatar_id":"","url":"https://api.github.com/users/WesCossick","html_url":"https://github.com/WesCossick","followers_url":"https://api.github.com/users/WesCossick/followers","following_url":"https://api.github.com/users/WesCossick/following{/other_user}","gists_url":"https://api.github.com/users/WesCossick/gists{/gist_id}","starred_url":"https://api.github.com/users/WesCossick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WesCossick/subscriptions","organizations_url":"https://api.github.com/users/WesCossick/orgs","repos_url":"https://api.github.com/users/WesCossick/repos","events_url":"https://api.github.com/users/WesCossick/events{/privacy}","received_events_url":"https://api.github.com/users/WesCossick/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T16:50:53Z","updated_at":"2016-09-12T16:50:53Z","body":"It's been merged into the development branch."}}
{"actor":{"display_login":"WesCossick"}}