Home tocbot에서 ToC에 표출되는 이름 변경하는 방법
Post
Cancel

tocbot에서 ToC에 표출되는 이름 변경하는 방법

Expects a string and returns the modified label to display.
Additionally, the attribute `data-heading-label` may be used on a heading to specify a shorter string to be used in the TOC.


출처: tocbot 깃허브의 ``tocbot/src/js/default-options.js`` 中

data-heading-label을 통해 변경하면 된다!!!!

예시

<h3 id="it-is-never-displayed" data-heading-label="only for toc">only for post</h3>

only for post

Contents