Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Неверный линт инструмента remark #611

Closed
x1z53 opened this issue Oct 28, 2024 · 2 comments
Closed

Неверный линт инструмента remark #611

x1z53 opened this issue Oct 28, 2024 · 2 comments
Assignees

Comments

@x1z53
Copy link
Contributor

x1z53 commented Oct 28, 2024

Инструмент remark, используемый в проекте для проверки структуры файлов .md, а точнее его плагин remark-lint-no-multiple-toplevel-headings воспринимает секцию метаданных (frontmatter) как часть документа

Если закоментировать строку в данной секции, то плагин вызывает ошибку о наличии нескольких заголовков верхнего уровня

Пример подобного поведения при добавлении комментария в секцию метаданных в файле docs/apps/penpot-desktop.md:

docs/apps/penpot-desktop.md
    5:3-5:23     warning Unexpected duplicate toplevel heading, exected a single heading with rank `1` no-multiple-toplevel-headings remark-lint
  [cause]:
    4:3-4:40 info    Toplevel heading already defined here no-multiple-toplevel-headings remark-lint
    25:1-25:17   warning Unexpected duplicate toplevel heading, exected a single heading with rank `1` no-multiple-toplevel-headings remark-lint
  [cause]:
    4:3-4:40 info    Toplevel heading already defined here no-multiple-toplevel-headings remark-lint
@Ampernic
Copy link
Collaborator

remark предназначен для обычного markdown из за чего это и возникло.
Это глупый парсер который читает секцию фронтматтера так же как и обычную.

Тут скорее моя ошибка в комментировании этих строк. Сейчас исправлю.

@Ampernic
Copy link
Collaborator

Исправил в 510e0dc

@github-project-automation github-project-automation bot moved this from В очереди to Выполнено in ALT Gnome Wiki Oct 28, 2024
@github-project-automation github-project-automation bot moved this from В очереди to Завершено in ALT KDE Wiki Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Выполнено
Status: Завершено
Development

No branches or pull requests

2 participants