Comments (9)
I put it here: https://github.com/apkraft/temp
For example,
[First header](#first-header) — is ok.
[First header](#First-header) — not ok.
[Первый заголовок](#первый-заголовок) — not ok
[Первый заголовок](#Первый-заголовок) — is ok
from remark-validate-links.
@apkraft Welcome!
Please take a look at the contributing.md docs to see how you can create an issue that we can help with. Especially the “Submitting an issue” section is good.
As it is, you didn’t provide enough info for someone to help you.
from remark-validate-links.
@wooorm Thank you for correction.
I have a project with content.md file in it. In this file I have a text like this:
# Введение
Вы можете создать профили пользователей с разными правами доступа к телеканалам и услугам. Подробнее в разделе [«Профили пользователей»](#профили-пользователей).
Имя текущего профиля пользователя отображается в **Главном меню** в верхней части экрана.
## Профили пользователей
Чтобы создать или отредактировать профиль.
My package.json looks like this:
{
"name": "md_lint_app",
"scripts": {
"lint-md": "remark"
},
"remarkConfig": {
"plugins": [
"validate-links"
]
},
"dependencies": {
"remark": "^9.0.0",
"remark-cli": "^5.0.0",
"remark-lint": "^6.0.2",
"remark-validate-links": "^7.1.0"
}
}
After executing remark-lint I have this log:
> md_lint_app@ lint-md /usr/src/remark-lint
> remark "./files_to_lint/" "-q" "--no-color"
files_to_lint/content.md
5:405-5:454 warning Link to unknown heading: `профили-пользователей`. Did you mean `Профили-пользователей` missing-heading remark-validate-links
⚠ 1 warning
The problem is that remark-validate-links plugin wants "Профили-пользователей" instead of "профили-пользователей" in the link [«Профили пользователей»](#профили-пользователей)
. This applies only to links in Russian.
I attached all files but with .txt extension to upload:
package.json.txt
linter.log
content.md.txt
.
from remark-validate-links.
Thanks! Why do you believe the heading link is different than remark-validate-links suggests?
The code works based on GitHub’s slugging. Do you have content.md
somewhere on GitHub?
from remark-validate-links.
Thanks for reporting this. It’s an issue in github-slugger. I opened a PR there: Flet/github-slugger#17.
from remark-validate-links.
Thank you!
from remark-validate-links.
I’ve merged some stuff in github-slugger. Hope we can release that soon and get this in here!
from remark-validate-links.
This is fixed btw, because github-slugger released with a fix for this as a patch!
from remark-validate-links.
This is fixed btw, because github-slugger released with a fix for this as a patch!
Thank you!
from remark-validate-links.
Related Issues (20)
- External links always report as failures HOT 10
- How to pass `urlConfig` HOT 10
- Fails on projects not versioned with Git HOT 6
- Support linking to anchors in directories HOT 15
- Error when using with Bazel HOT 4
- No warning or error in case of missing reference HOT 3
- Link checker fails on a matching substring HOT 6
- Multiple hyphens in a row are not collapsed in headings HOT 4
- Support Root-Relative Links (Absolute Links)? HOT 8
- Emoji headings are not supported HOT 1
- Images in headings not slugged correctly HOT 6
- Links are failing when the link is using any of the restricted names like "constructor"/"concat" etc. HOT 2
- `missing-heading-in-file` after upgrade to latest `remark-cli` (v10) HOT 9
- Links checks are failing when the header contains any special character in it. HOT 1
- Support [[wikilinks]] HOT 5
- Validate links for Foliant projects HOT 7
- Headings with inline comments are slugged incorrectly HOT 5
- Nonexistent reference-style links don't cause an error HOT 3
- Does not catch bad links that use absolute paths to repo root HOT 5
- Allow selection between warning, error and ignoring regarding the validity of links HOT 9
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 remark-validate-links.