- Fix: Logic fix bracket position. #27 by @darkdragon-001.
- Fix: Remove unnecessary newline at end of toc.
- New: New
asterisk
configuration option allow user to use*
char for genrated toc instead of default-
char.
- Improve: Respect editor's indent setting(e.g. tab or soft-tab, number of spaces for softtabs.)
- Fix: Fix inappropriate link target generation. Now correctly extract textContent from TAG by @justinhartman. #20
- Improve: Improve toc title extraction from header, now strip 'a' tag from toc title. #21
- Improve: Add test specs. #21
- Fix: No longer eliminate harmless multibyte chars in header, so now header containing multibyte chars is properly linked. #19
- Fix: Fix deprecated
undo
option foreditor.setTextInBufferRange()
function. #17
- Improve: Specified
min
level header now have ZERO indent #13 by @nemoDreamer - Maintenance: Convert to JavaScript from CoffeeScript.
- Improve: Add support for
language-markdown
grammar by @thancock20.- Caution: This pkg still intended to generate toc only for
gfm
. - Why I added this is just to mitigate frustration for user using
language-markdown
for all.md
file.
- Caution: This pkg still intended to generate toc only for
- Improve: Package activation performance improved.
- Improve: Accurate link suffix when header include special character.
- Fix: Degradation link options were ignored. Respect it again.
- Improve: Add link suffix when same subject header appeared multiple time. #6
- Improve: No longer have to save twice to save updated toc at
onDidSave
timing.- Since now use
onWillSave
event instead of previousonDidSave
.
- Since now use
- Fix: Guard to be called auto toc update hook multiple time on save file #2
- Improve: Keep cursor position before and after the toc insertion.
- Improve: Skip toc insertion from undo handling.
- Fix: Header was not genrated correctly
- Fix: debug print on
generateToc
- Improve: Re-organize file organization(extract private function to utils.coffee).
- New, Breaking: New(
link
,update
). Renamed(initialMinLevel
tomin
,initialMaxLevel
tomax
). - Internal: Cleanup codes.
- Improve: Extract link text from img link(
![]
).
- New, Breaking:
insert-toc
renamed toinsert-toc-at-top
and existinginsert-toc
insert TOC at cursor. - Improve: Now TOC area don't have to be start at top line(row=0).
- Improve: Extract text when link(
[text](link)
) is used in header. - New: Support
max:
andmin:
pragma to specify header level for toc.
- Initial release.