Comments (3)
+1
But regexp doesn't needed. Just non-ascii characters should be escaped, like github/gitlab does. It's may be an optional.
In JavaScript escaping may be done by using encodeURIComponent(str)
. In Python it's also simple (according to stackoverflow) β urllib.quote(unicode(str).encode('utf-8'), safe='~()*!.\'')
from markdowntoc.
I'm sooooooo sorry for late reply.
Today I added a new feature URI encoding. And I saw all links are working correctly on Gitlab(sample) and Github(sample).
I hope this fix your problem.
# 1. Hello δΈη World
will also has id1-hello-world
, "δΈη" is trimmed.
By the way, I think it won't be 1-hello-world
but 1-hello--world
because δΈη
is trimmed. So I think you will not be able to get results you wanted with id_replacements
anyway.
from markdowntoc.
This might be fixed in 2.4.0.
from markdowntoc.
Related Issues (20)
- GFM Compliancy Issues HOT 5
- Discrete Headings: Allow Selective Exclusion from TOC HOT 6
- Attribute 'compatible' HOT 2
- Broken autolink when two or more _ (underscores) used in the title HOT 5
- Broken autolink when - (dash) used in the title HOT 6
- feature_request(option): ids of parent headers in repeated ids
- ValueError: list.remove(x): x not in list HOT 3
- Ignore comments in blocks of code HOT 1
- Markdown Preview compatible: Markdown HOT 1
- Autocomplete valid properties
- Standardize Single Quote Usage HOT 6
- Provide a MarkdownTOC CLI Tool for non-ST Users HOT 1
- MarkdownTOC v4.1.0 Not Working HOT 6
- Remove `.python-version` HOT 6
- Add support for .mdx files HOT 1
- Incorrect underscore handling HOT 3
- QUESTION: link of different MD file into one MD file collected by TOC HOT 1
- Open settings side-by-side with one command instead of separately in two commands
- can not insert markdown TOC in Sublime Text, Build 4121 on Macos Catalina 10.15.7. HOT 2
- Attribute "levels" prevents generation
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 markdowntoc.