Open mcornella opened 3 years ago
@AlanWalk please merge :)
Any eta? Thanks for your efforts! Really appreciated!
How can I get this version of extension?
I tried contacting the author a few times but I get no response. I submitted the PR because I knew this extension was used by many people and I could have the greatest impact, so I really don't want to go the way other PR authors have and create a new extension.
I tried contacting the author a few times but I get no response. I submitted the PR because I knew this extension was used by many people and I could have the greatest impact, so I really don't want to go the way other PR authors have and create a new extension.
It almost seems like abandonment of the project, perhaps it is needed to create a new project based on this to implement your changes? I know that it is not the preferable way of doing it.
I ended up looking at all forks of this project and there is one that seems to have progressed in the good direction. This fork is easy to spot, because it has forks of its own. It appears to have fixed at least some issues mentioned here. so, I ended up installing extension from that fork.
This PR introduces the following:
Refresh VSC extension development environment (basically make it as if the extension was just generated via the yeoman code extension generator).
lint
npm script)es6
)Fix TypeScript errors and linting warnings Some of these fix a reliance on null coercing to undefined, others are making sure the TS compiler knows that
window.activeTextEditor
is always defined.Use line ending and tab settings of the file currently open. For this to be available I had to update the VS Code typings (commit 1). This is a better solution than #72 and #80
Fixes #57, fixes #60, fixes #65, fixes #67, fixes #68, fixes #82, fixes #90, fixes #91. Closes #72, closes #80.
Replace bold and italic marks but only if on start or end of a word. This fixes wrong removal of
_
in headers introduced in fe9b778, which made headings likeword_and_another_word
be words all mushed together. Fixes #30, fixes #39. This fix should be upstreamed toanchor-markdown-header
, which should only remove these marks in the anchor, not the link text.Simplify optionsFlag property operations Instead of using an array, it now uses an object so the test for flags is simpler (no
.indexOf
).Don't match
ignore:true
comments as the start of the TOC. Fixes https://github.com/AlanWalk/markdown-toc/issues/26#issuecomment-466784656.Remove decodeURI call which breaks on headings containing % Fixes #35, fixes #49, fixes #79.
Track repeated links using the anchor (
#title
) instead of the title (title
). Fixes #93.I know this is a big change but it can be more easily reviewed commit by commit and with whitespace changes turned off.
Other (issues maintenance)
Closes #26: fixes bug described in https://github.com/AlanWalk/markdown-toc/issues/26#issuecomment-466784656 (commit 7). Closes #31: this was fixed in 1.6.0. Closes #37: the bug in VS Code Preview doesn't happen anymore. Closes #46, closes #56, closes #87: links in headings are supported in the latest version, can be closed. Closes #52: comments in code blocks aren't parsed as headings in the latest version, can be closed. Closes #53:
orderedList:true
plays well withupdateOnSave
in the latest version, can be closed. Closes #59: can't reproduce after this PR is merged. Closes #62: feature request already exists withdepthFrom:2
. Closes #64, closes #69, closes #75: the bug happens because of wrong markdown syntax, can be closed. Closes #74: can't reproduce after this PR is merged. Closes #84: can't reproduce after this PR is merged.