# vue-markdown-it-toc **Repository Path**: mayan50/vue-markdown-it-toc ## Basic Information - **Project Name**: vue-markdown-it-toc - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-21 - **Last Updated**: 2021-10-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-markdown-it-toc markdown-it toc components - add toc base css - when scroll the page, set the active toc item - support set offset to the header ### usage - example - [vue-markdown-it-toc github](https://gitee.com/muzi131313/markdown-it-toc-demo) - [vue-markdown-it-toc online demo](https://muzi131313.github.io/vue-markdown-it-toc-demo/) - import the component plugins ```` import Vue from 'vue' import MarkdownItToc from 'vue-markdown-it-toc' Vue.use(MarkdownItToc) ```` - use in vue project - template ```` ```` - css ```` .markdown-it-wrap { width: 1140px; margin: 0 auto; padding-right: 165px; box-sizing: border-box; } ```` ### questions - if the css style does not satisfy your usage scence, then you can rewrite the toc style that was wraped by the `.table-of-contents` css