{"action":"created","issue":{"url":"https://api.github.com/repos/gettalong/kramdown/issues/453","repository_url":"https://api.github.com/repos/gettalong/kramdown","labels_url":"https://api.github.com/repos/gettalong/kramdown/issues/453/labels{/name}","comments_url":"https://api.github.com/repos/gettalong/kramdown/issues/453/comments","events_url":"https://api.github.com/repos/gettalong/kramdown/issues/453/events","html_url":"https://github.com/gettalong/kramdown/issues/453","id":258953142,"number":453,"title":"Feature request: allow changing default options","user":{"login":"kylebarbour","id":4647176,"avatar_url":"https://avatars3.githubusercontent.com/u/4647176?v=4","gravatar_id":"","url":"https://api.github.com/users/kylebarbour","html_url":"https://github.com/kylebarbour","followers_url":"https://api.github.com/users/kylebarbour/followers","following_url":"https://api.github.com/users/kylebarbour/following{/other_user}","gists_url":"https://api.github.com/users/kylebarbour/gists{/gist_id}","starred_url":"https://api.github.com/users/kylebarbour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylebarbour/subscriptions","organizations_url":"https://api.github.com/users/kylebarbour/orgs","repos_url":"https://api.github.com/users/kylebarbour/repos","events_url":"https://api.github.com/users/kylebarbour/events{/privacy}","received_events_url":"https://api.github.com/users/kylebarbour/received_events","type":"User","site_admin":false},"labels":[{"id":55517051,"url":"https://api.github.com/repos/gettalong/kramdown/labels/enhancement","name":"enhancement","color":"0052cc","default":true}],"state":"closed","locked":false,"assignee":{"login":"gettalong","id":4104,"avatar_url":"https://avatars3.githubusercontent.com/u/4104?v=4","gravatar_id":"","url":"https://api.github.com/users/gettalong","html_url":"https://github.com/gettalong","followers_url":"https://api.github.com/users/gettalong/followers","following_url":"https://api.github.com/users/gettalong/following{/other_user}","gists_url":"https://api.github.com/users/gettalong/gists{/gist_id}","starred_url":"https://api.github.com/users/gettalong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gettalong/subscriptions","organizations_url":"https://api.github.com/users/gettalong/orgs","repos_url":"https://api.github.com/users/gettalong/repos","events_url":"https://api.github.com/users/gettalong/events{/privacy}","received_events_url":"https://api.github.com/users/gettalong/received_events","type":"User","site_admin":false},"assignees":[{"login":"gettalong","id":4104,"avatar_url":"https://avatars3.githubusercontent.com/u/4104?v=4","gravatar_id":"","url":"https://api.github.com/users/gettalong","html_url":"https://github.com/gettalong","followers_url":"https://api.github.com/users/gettalong/followers","following_url":"https://api.github.com/users/gettalong/following{/other_user}","gists_url":"https://api.github.com/users/gettalong/gists{/gist_id}","starred_url":"https://api.github.com/users/gettalong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gettalong/subscriptions","organizations_url":"https://api.github.com/users/gettalong/orgs","repos_url":"https://api.github.com/users/gettalong/repos","events_url":"https://api.github.com/users/gettalong/events{/privacy}","received_events_url":"https://api.github.com/users/gettalong/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-09-19T20:27:23Z","updated_at":"2017-12-02T17:46:59Z","closed_at":"2017-10-26T21:32:08Z","author_association":"NONE","body":"A common mechanism for configuring alternate default options in Unix environments is a dotfile, e.g. `.bashrc` or `.vimrc`. It would be really helpful to be able to set default options in `.kramdown`. It could use the same syntax as the already-existing `{::options ... /}` syntax:\r\n\r\n    $ cat .kramdown\r\n     auto_ids=\"false\"\r\n     footnote_nr=\"5\"\r\n    $\r\n\r\nCurrently I solve this problem by aliasing kramdown to include my default settings, but I think this would be more elegant.\r\n\r\nThanks for considering!"},"comment":{"url":"https://api.github.com/repos/gettalong/kramdown/issues/comments/348707907","html_url":"https://github.com/gettalong/kramdown/issues/453#issuecomment-348707907","issue_url":"https://api.github.com/repos/gettalong/kramdown/issues/453","id":348707907,"user":{"login":"kylebarbour","id":4647176,"avatar_url":"https://avatars3.githubusercontent.com/u/4647176?v=4","gravatar_id":"","url":"https://api.github.com/users/kylebarbour","html_url":"https://github.com/kylebarbour","followers_url":"https://api.github.com/users/kylebarbour/followers","following_url":"https://api.github.com/users/kylebarbour/following{/other_user}","gists_url":"https://api.github.com/users/kylebarbour/gists{/gist_id}","starred_url":"https://api.github.com/users/kylebarbour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylebarbour/subscriptions","organizations_url":"https://api.github.com/users/kylebarbour/orgs","repos_url":"https://api.github.com/users/kylebarbour/repos","events_url":"https://api.github.com/users/kylebarbour/events{/privacy}","received_events_url":"https://api.github.com/users/kylebarbour/received_events","type":"User","site_admin":false},"created_at":"2017-12-02T17:46:59Z","updated_at":"2017-12-02T17:46:59Z","author_association":"NONE","body":"I'm having trouble using this in the new release. After hacking on it for a while, I think the issue may be that loading `$XDG_CONFIG_HOME/kramdownrc` generates options as strings and not symbols. In other words, running `kramdown --smart-quotes \"apos,apos,quot,quot\" file.md` works fine and on internal inspection the `options` hash contains `{:smart_quotes=>[\"apos\", \"apos\", \"quot\", \"quot\"]}`, but when `smart-quotes: \"apos,apos,quot,quot\"` is in `~/.config/kramdownrc` the options aren't run and the options hash contains `{\"smart-quotes\"=>\"apos,apos,quot,quot\"}`.\r\n\r\nAny thoughts?"}}
{"actor":{"display_login":"kylebarbour"}}