{"action":"closed","issue":{"url":"https://api.github.com/repos/reptar/reptar/issues/54","repository_url":"https://api.github.com/repos/reptar/reptar","labels_url":"https://api.github.com/repos/reptar/reptar/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/reptar/reptar/issues/54/comments","events_url":"https://api.github.com/repos/reptar/reptar/issues/54/events","html_url":"https://github.com/reptar/reptar/issues/54","id":186119626,"number":54,"title":"add table of contents plugin to markdown-it ","user":{"login":"AlahmadiQ8","id":3461501,"avatar_url":"https://avatars.githubusercontent.com/u/3461501?v=3","gravatar_id":"","url":"https://api.github.com/users/AlahmadiQ8","html_url":"https://github.com/AlahmadiQ8","followers_url":"https://api.github.com/users/AlahmadiQ8/followers","following_url":"https://api.github.com/users/AlahmadiQ8/following{/other_user}","gists_url":"https://api.github.com/users/AlahmadiQ8/gists{/gist_id}","starred_url":"https://api.github.com/users/AlahmadiQ8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlahmadiQ8/subscriptions","organizations_url":"https://api.github.com/users/AlahmadiQ8/orgs","repos_url":"https://api.github.com/users/AlahmadiQ8/repos","events_url":"https://api.github.com/users/AlahmadiQ8/events{/privacy}","received_events_url":"https://api.github.com/users/AlahmadiQ8/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-30T06:18:32Z","updated_at":"2016-11-06T22:01:09Z","closed_at":"2016-11-06T22:01:09Z","body":"the only one i found that appears to be maintained is [this one](https://github.com/Oktavilla/markdown-it-table-of-contents)\n\nit would used by adding [[toc]] anywhere in the markdown file like this: \n\n``` markdown\n\n# Heading 1 \n\n[[toc]]\n\n...\n....\n...\n```\n\nHere is [an example](https://github.com/AlahmadiQ8/reptar/commit/fe7ce992e287c7c6bd1bb167f1d843e0310cd90f) of how i did it on my fork. I'd need to add options in the _config.yaml for the [plugin options](https://github.com/AlahmadiQ8/reptar/commit/fe7ce992e287c7c6bd1bb167f1d843e0310cd90f). Right now they're hard coded. \n- How would you go about this? \n- Another option is to write my own toc generator and make it aa reptar plugin instead. I'd do it similarly to [reptar-excerp](https://github.com/reptar/reptar-excerpt). Then, on the file frontmatter, you can add an option `toc: true`. \n\nwhat do you think ? \n"}}
{"actor":{"display_login":"hswolff"}}