Giter Site home page Giter Site logo

Comments (9)

apkraft avatar apkraft commented on June 18, 2024 1

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.

wooorm avatar wooorm commented on June 18, 2024

@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.

apkraft avatar apkraft commented on June 18, 2024

@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.

wooorm avatar wooorm commented on June 18, 2024

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.

wooorm avatar wooorm commented on June 18, 2024

Thanks for reporting this. It’s an issue in github-slugger. I opened a PR there: Flet/github-slugger#17.

from remark-validate-links.

apkraft avatar apkraft commented on June 18, 2024

Thank you!

from remark-validate-links.

wooorm avatar wooorm commented on June 18, 2024

I’ve merged some stuff in github-slugger. Hope we can release that soon and get this in here!

from remark-validate-links.

wooorm avatar wooorm commented on June 18, 2024

This is fixed btw, because github-slugger released with a fix for this as a patch!

from remark-validate-links.

apkraft avatar apkraft commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.