Comments (2)
Hi there!
I don’t think this is a good idea: I think it’s very useful to push one slug algorithm instead. This helps everyone in the end. For example, in VS Code you can autocomplete links to headings, which will use the same algorithm that we do. And that’s great! Interop!
There are some really good other slugging algorithms, some with lots of options. I don’t think it’s a good idea to add every option someone might ever want here.
Alternatives
I think there’s a very good alternative: this plugin is tiny! 15 lines. You can choose any slugging you want by writing your own plugins!
This is not ideal.
that makes the life harder when trying to tackle the orphan word control in MDX
What weird statements. This is open sources. This is programming. It’s about trade offs. You have different ones than other people, which is fine! But I think it’s weird to insinuate that people giving away stuff for free are doing that to intentionally make other people’s lives harder
For more info, see:
- https://github.com/remarkjs/remark-slug/issues?q=sort%3Aupdated-desc+is%3Aclosed+
- https://github.com/rehypejs/rehype-slug/pulls?q=sort%3Aupdated-desc+is%3Aclosed
- https://github.com/Flet/github-slugger/issues?q=sort%3Aupdated-desc+is%3Aclosed+
from rehype-slug.
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
from rehype-slug.
Related Issues (11)
- Support manual custom IDs HOT 3
- Broken anchors when header contains accents HOT 10
- Handle titles starting with numbers HOT 4
- Add option for adding a prefix HOT 3
- Why not support a pluggable `option.slug` function (or `options.slugger` implementation)? HOT 9
- Option to capitalize slugs HOT 5
- Typescript typings for this plugin HOT 3
- Types introduced in v4 aren't exposed via the package.json
- Add support for 'German' umlaute HOT 2
- Customize which headings are included HOT 7
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 rehype-slug.