Comments (11)
I'll add an additional rule which is
- It should be a within-document anchor (something like
#header-title
) not a link (http://...
)
from vscode-markdown.
Thank you for the feedback. I'll look into it this weekend.
from vscode-markdown.
It seems that I cannot reproduce that with the snippet you provided 🤔.
Could you please provide more details? (e.g. vscode version, the text which was misrecognized as TOC)
from vscode-markdown.
As I don't want to leak information I obfuscated the actual text (it shouldn't really matter):
from vscode-markdown.
Okay, I see the bug.
But I have no idea about why. Can you try to reproduce it with some not secret text? 😅
Below is the current behaviors,
To avoid distractive HTML comments, this extension will 'guess' where the TOC is. Currently, a TOC will be recognized if
- It's a list block in Markdown syntax
- Its first list item title matches the first heading in the file
from vscode-markdown.
Ah, the first item matches the title (a level 1 header) so the second rule triggers.
It would be like
# PR-123456 Build a new window
## Issues
- [PR-123456 Build a new window](http://issuetracker/PR-123456)
- [PR-123457 A related issue](http://issuetracker/PR-123457)
Too bad markdown doesn't have comments or it would be possible to make a NoTOC tag that doesn't show in the output.
from vscode-markdown.
I like the idea 👍
from vscode-markdown.
I've fixed it. But I cannot publish the new version because of the bad network connection. Let's ship it tomorrow.
from vscode-markdown.
Published! If you are satisfied with it, please give me a 5 stars 😉
from vscode-markdown.
It seems fixed 😄
Amended my review ;)
from vscode-markdown.
Thanks 😎
from vscode-markdown.
Related Issues (20)
- Reduce and/or add setting for `renderLink` icon size
- markdown.extension.print.onFileSave: false is ignored
- "Toggle strikethrough" command doesn't recognize lists
- `tab` to indent the whole `<li>` list item block.
- Slowness in typing HOT 2
- Causes scm.experimental.showHistoryGraph to not show file diffs HOT 1
- Unordered list marker completion after multi-line list element
- Clicking on the markdown links, if they are valid, should open local files in the IDE and folders in the local operating system's file manager.
- Code Blocks Without Language Not Formatted in Markdown Files HOT 2
- feature to create a list of data into table format
- Cursor jumps to next line while writing in markdown file HOT 1
- Add Work in Progress Checkbox HOT 2
- extension slows down inputting comments in a jsonc file HOT 1
- Ctrl+B inside markdown document does trigger other VS functionality
- Extension causes high cpu load
- Consider single-pane workflow
- Wrong letter for İ when generating TOC.
- highlights all words in red
- fixed and floating toc in editing mode
- Chinese text with :[ does not align properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-markdown.