Comments (2)
@summerwish Could you provide more details of what's the markdown header exactly, and what is the expected value?
Current implementation will treat the CJK punctuations as is, so if the header is
# ,。?
And the result would be:
- [,。?](#,。?)
from markdown-toc.
I created a testing markdown page to test the Github behavior at gist: https://gist.github.com/twang2218/cc1791525b6f06f24cff4266c81c713e#file-test-md
It seems that Github strips most (not all) CJK punctuations, so I created this PR to comply such behavior.
from markdown-toc.
Related Issues (20)
- Ignore existing heading anchor
- --no-firsth1 option causes "undefined" words to appear in the toc HOT 3
- wrong output and slug generated (using GFM as reference) when title contains a link
- inline code is stripped, even with --no-stripHeadingTags
- Invalid links
- Error: Cannot statically analyse 'require(…, …)' in line 16 HOT 4
- -- the maxdepth parameter does not work on my Mac notebook
- Proposal: Add more detailed usage for toc.insert
- Generated ToC includes commented headers
- Unable to report version
- Extra newlines added when file has horizontal lines
- How do you add the anchors to the headings?
- Not working with esbuild/vite HOT 1
- cli option no-firsth1 naming is misleading
- Where is the generated toc HOT 1
- error in create-react-app
- Image for sponsorships
- want to help maintain markdown-toc? HOT 2
- Document with literal `---` or single horizontal rule at top is mangled
- Strange OpenGL output in place of toc? 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 markdown-toc.