-
Notifications
You must be signed in to change notification settings - Fork 111
Refactor and many many fixes #92
base: master
Are you sure you want to change the base?
Conversation
- Add eslint - Update .vscode settings - Substitute vscode for @types/vscode and vscode-test packages - Update package.json scripts - Update tsconfig and remove typings folder - Update vsc-extension-quickstart document
83fb3ee
to
5fdee53
Compare
@alanwalk please merge :) |
ece9ce0
to
b8d4a2b
Compare
c4544f2
to
7068505
Compare
Fixes wrong removal of _ in headers introduced in fe9b778 Fixes alanwalk#30
This fixes the case where different titles get the same hash. In the old version, the repetition number was tracked with the title; since they didn't match, the repetition number wasn't incremented. Now, the repetition number is tracked from the hash (#title), so they get the correct repetition. Fixes alanwalk#93
7068505
to
9bbcb2f
Compare
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. |
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 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 Add check for Files>EOL ==="auto" and set it to "\n" #72 and Use OS EOL if lineEnding is set to auto #80
Fixes markdownlint shows warning on 4-space indent of subsections (expects 2 spaces) #57, fixes Indentation Issue - MD007/ul-indent #60, fixes "auto" inserted instead of line breaks in TOC #65, fixes VSCODE markdown TOC问题咨询 #67, fixes broken when upgrade to latest vs code #68, fixes can not generate what i want,it has more auto #82, fixes Not working on Linux #90, fixes Inserts extra words "auto" and formats incorrectly #91.
Closes Add check for Files>EOL ==="auto" and set it to "\n" #72, closes Use OS EOL if lineEnding is set to auto #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 [BUG] Anchors may have invalid chars that break the links #30, fixes [Bug] remove special characters on gitlab anchor mode #39.
This fix should be upstreamed to
anchor-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 Suggestion: a way to ignore certain headings #26 (comment).
Remove decodeURI call which breaks on headings containing %
Fixes Generate/update TOC doesn't respond #35, fixes Hope Chinese character will be percent encoded. #49, fixes Bug--如果标题含有%符号 则无法插入或者更新序号 #79.
Track repeated links using the anchor (
#title
) instead of the title (title
).Fixes Same headers with different cases don't generate unique links #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 #26 (comment) (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 with
depthFrom: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.