@diplodoc/yfmlint 1.2.8 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,3 +8,4 @@ export { yfm007 } from './yfm007';
8
8
  export { yfm008 } from './yfm008';
9
9
  export { yfm009 } from './yfm009';
10
10
  export { yfm010 } from './yfm010';
11
+ export { yfm011 } from './yfm011';
@@ -0,0 +1,2 @@
1
+ import type { Rule } from 'markdownlint';
2
+ export declare const yfm011: Rule;
@@ -1,4 +1,4 @@
1
- import type { LintError as BaseLintError } from 'markdownlint';
1
+ import type { LintError as BaseLintError, MarkdownItToken } from 'markdownlint';
2
2
  import type { LogLevels } from './utils';
3
3
  export type RawLintConfig = {
4
4
  default?: boolean;
@@ -29,3 +29,6 @@ export interface Logger {
29
29
  export interface LintError extends BaseLintError {
30
30
  level: LogLevels;
31
31
  }
32
+ export type TokenWithAttrs = MarkdownItToken & {
33
+ attrGet(name: string): string | null;
34
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/yfmlint",
3
- "version": "1.2.8",
3
+ "version": "1.3.1",
4
4
  "description": "A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML",
5
5
  "keywords": [
6
6
  "docs",
@@ -9,13 +9,16 @@
9
9
  "markdownlint",
10
10
  "documentation"
11
11
  ],
12
- "homepage": "https://github.com/diplodoc-platform/mdlint#readme",
12
+ "engines": {
13
+ "npm": ">=11.5.1"
14
+ },
15
+ "homepage": "https://github.com/diplodoc-platform/yfmlint#readme",
13
16
  "bugs": {
14
- "url": "https://github.com/diplodoc-platform/mdlint/issues"
17
+ "url": "https://github.com/diplodoc-platform/yfmlint/issues"
15
18
  },
16
19
  "repository": {
17
20
  "type": "git",
18
- "url": "git@github.com:diplodoc-platform/mdlint.git"
21
+ "url": "git@github.com:diplodoc-platform/yfmlint.git"
19
22
  },
20
23
  "license": "MIT",
21
24
  "author": "YFM Team <yfm-team@yandex.ru>",