@diplodoc/transform 4.57.6 → 4.58.0
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.
- package/dist/css/_yfm-only.css.map +1 -1
- package/dist/css/_yfm-only.min.css.map +1 -1
- package/dist/css/base.css.map +1 -1
- package/dist/css/base.min.css.map +1 -1
- package/dist/css/print.css.map +1 -1
- package/dist/css/yfm.css.map +1 -1
- package/dist/css/yfm.min.css.map +1 -1
- package/lib/constants.d.ts +1 -1
- package/lib/headings.d.ts +2 -2
- package/lib/headings.js.map +1 -1
- package/lib/highlight.d.ts +1 -1
- package/lib/highlight.js.map +1 -1
- package/lib/liquid/conditions.js.map +1 -1
- package/lib/liquid/index.d.ts +1 -1
- package/lib/liquid/index.js.map +1 -1
- package/lib/plugins/anchors/collect.d.ts +1 -1
- package/lib/plugins/anchors/collect.js.map +1 -1
- package/lib/plugins/anchors/constants.d.ts +1 -1
- package/lib/plugins/anchors/index.d.ts +1 -1
- package/lib/plugins/anchors/index.js.map +1 -1
- package/lib/plugins/block-anchor/block-anchor.d.ts +2 -2
- package/lib/plugins/block-anchor/index.d.ts +1 -1
- package/lib/plugins/changelog/collect.d.ts +2 -2
- package/lib/plugins/changelog/collect.js.map +1 -1
- package/lib/plugins/changelog/index.d.ts +1 -1
- package/lib/plugins/changelog/index.js.map +1 -1
- package/lib/plugins/checkbox/index.d.ts +1 -1
- package/lib/plugins/checkbox/index.js.map +1 -1
- package/lib/plugins/code.d.ts +1 -1
- package/lib/plugins/code.js +1 -1
- package/lib/plugins/code.js.map +1 -1
- package/lib/plugins/deflist.d.ts +1 -1
- package/lib/plugins/deflist.js.map +1 -1
- package/lib/plugins/images/collect.d.ts +1 -1
- package/lib/plugins/images/collect.js.map +1 -1
- package/lib/plugins/images/index.d.ts +1 -1
- package/lib/plugins/images/index.js.map +1 -1
- package/lib/plugins/imsize/index.d.ts +2 -2
- package/lib/plugins/imsize/index.js.map +1 -1
- package/lib/plugins/includes/collect.d.ts +1 -1
- package/lib/plugins/includes/collect.js.map +1 -1
- package/lib/plugins/includes/index.d.ts +2 -2
- package/lib/plugins/includes/index.js +1 -1
- package/lib/plugins/includes/index.js.map +1 -1
- package/lib/plugins/includes/types.d.ts +2 -2
- package/lib/plugins/links/index.d.ts +4 -4
- package/lib/plugins/links/index.js.map +1 -1
- package/lib/plugins/meta.d.ts +1 -1
- package/lib/plugins/meta.js.map +1 -1
- package/lib/plugins/monospace.d.ts +1 -1
- package/lib/plugins/notes/constants.d.ts +1 -1
- package/lib/plugins/notes/index.d.ts +5 -2
- package/lib/plugins/notes/index.js +11 -4
- package/lib/plugins/notes/index.js.map +1 -1
- package/lib/plugins/ol-attr-conversion.d.ts +1 -1
- package/lib/plugins/sup.d.ts +1 -1
- package/lib/plugins/sup.js.map +1 -1
- package/lib/plugins/table/index.d.ts +3 -2
- package/lib/plugins/table/index.js +152 -28
- package/lib/plugins/table/index.js.map +1 -1
- package/lib/plugins/table/types.d.ts +34 -0
- package/lib/plugins/table/types.js +3 -0
- package/lib/plugins/table/types.js.map +1 -0
- package/lib/plugins/term/index.d.ts +1 -1
- package/lib/plugins/term/termDefinitions.d.ts +3 -3
- package/lib/plugins/term/termDefinitions.js.map +1 -1
- package/lib/plugins/utils.d.ts +2 -2
- package/lib/plugins/utils.js.map +1 -1
- package/lib/preprocessors/included/index.d.ts +1 -1
- package/lib/preprocessors/included/index.js.map +1 -1
- package/lib/sanitize.d.ts +1 -1
- package/lib/sanitize.js.map +1 -1
- package/lib/title.d.ts +1 -1
- package/lib/typings.d.ts +7 -6
- package/lib/utils.d.ts +1 -1
- package/lib/utils.js.map +1 -1
- package/lib/utilsFS.d.ts +1 -1
- package/lib/utilsFS.js.map +1 -1
- package/lib/yfmlint/index.d.ts +3 -3
- package/lib/yfmlint/index.js.map +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm001.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm001.js.map +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm002.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm003.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm004.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm005.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm006.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm007.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm008.d.ts +1 -1
- package/lib/yfmlint/markdownlint-custom-rule/yfm009.d.ts +1 -1
- package/lib/yfmlint/typings.d.ts +3 -3
- package/lib/yfmlint/utils.d.ts +2 -2
- package/lib/yfmlint/utils.js.map +1 -1
- package/lib/yfmlint/yfmlint.d.ts +1 -1
- package/lib/yfmlint/yfmlint.js.map +1 -1
- package/package.json +2 -1
- package/src/transform/constants.ts +1 -1
- package/src/transform/headings.ts +2 -3
- package/src/transform/highlight.ts +2 -2
- package/src/transform/liquid/conditions.ts +3 -1
- package/src/transform/liquid/index.ts +2 -1
- package/src/transform/plugins/anchors/collect.ts +2 -1
- package/src/transform/plugins/anchors/constants.ts +1 -1
- package/src/transform/plugins/anchors/index.ts +4 -3
- package/src/transform/plugins/block-anchor/block-anchor.ts +2 -2
- package/src/transform/plugins/block-anchor/index.ts +1 -1
- package/src/transform/plugins/changelog/collect.ts +3 -3
- package/src/transform/plugins/changelog/index.ts +5 -5
- package/src/transform/plugins/checkbox/index.ts +2 -1
- package/src/transform/plugins/code.ts +3 -2
- package/src/transform/plugins/deflist.ts +2 -2
- package/src/transform/plugins/images/collect.ts +2 -1
- package/src/transform/plugins/images/index.ts +4 -3
- package/src/transform/plugins/imsize/index.ts +3 -2
- package/src/transform/plugins/includes/collect.ts +2 -2
- package/src/transform/plugins/includes/index.ts +8 -13
- package/src/transform/plugins/includes/types.ts +2 -2
- package/src/transform/plugins/links/index.ts +6 -6
- package/src/transform/plugins/meta.ts +2 -2
- package/src/transform/plugins/monospace.ts +3 -3
- package/src/transform/plugins/notes/constants.ts +1 -1
- package/src/transform/plugins/notes/index.ts +26 -7
- package/src/transform/plugins/ol-attr-conversion.ts +1 -1
- package/src/transform/plugins/sup.ts +2 -2
- package/src/transform/plugins/table/index.ts +190 -31
- package/src/transform/plugins/table/types.ts +35 -0
- package/src/transform/plugins/term/index.ts +3 -3
- package/src/transform/plugins/term/termDefinitions.ts +3 -4
- package/src/transform/plugins/utils.ts +3 -3
- package/src/transform/plugins/video/parsers.ts +2 -2
- package/src/transform/preprocessors/included/index.ts +3 -2
- package/src/transform/sanitize.ts +4 -2
- package/src/transform/title.ts +1 -1
- package/src/transform/typings.ts +7 -7
- package/src/transform/utils.ts +2 -1
- package/src/transform/utilsFS.ts +1 -1
- package/src/transform/yfmlint/index.ts +4 -3
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm001.ts +2 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm002.ts +1 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm003.ts +1 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm004.ts +1 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm005.ts +1 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm006.ts +1 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm007.ts +1 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm008.ts +1 -1
- package/src/transform/yfmlint/markdownlint-custom-rule/yfm009.ts +1 -1
- package/src/transform/yfmlint/typings.ts +3 -6
- package/src/transform/yfmlint/utils.ts +2 -3
- package/src/transform/yfmlint/yfmlint.ts +2 -2
- package/lib/plugins/table/attrs.d.ts +0 -18
- package/lib/plugins/table/attrs.js +0 -172
- package/lib/plugins/table/attrs.js.map +0 -1
- package/src/transform/plugins/table/attrs.ts +0 -199
package/lib/yfmlint/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dictionary } from 'lodash';
|
|
2
|
-
import { Rule } from 'markdownlint';
|
|
3
|
-
import { LogLevels, Logger } from '../log';
|
|
4
|
-
import { Options } from './typings';
|
|
2
|
+
import type { Rule } from 'markdownlint';
|
|
3
|
+
import type { LogLevels, Logger } from '../log';
|
|
4
|
+
import type { Options } from './typings';
|
|
5
5
|
declare function yfmlint(opts: Options): void;
|
|
6
6
|
export = yfmlint;
|
|
7
7
|
declare namespace yfmlint {
|
package/lib/yfmlint/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transform/yfmlint/index.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transform/yfmlint/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm001: Rule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yfm001.js","sourceRoot":"","sources":["../../../src/transform/yfmlint/markdownlint-custom-rule/yfm001.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"yfm001.js","sourceRoot":"","sources":["../../../src/transform/yfmlint/markdownlint-custom-rule/yfm001.ts"],"names":[],"mappings":";;;AAEA,mBAAmB;AACnB,yEAAgG;AAEnF,QAAA,MAAM,GAAS;IACxB,KAAK,EAAE,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACvC,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,CAAC,aAAa,CAAC;IACrB,QAAQ,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO;QACrC,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,CAAC;QACxB,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,GAAG,CAAC,CAAC;QAEhD,IAAA,wCAAY,EAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAsB,EAAE,EAAE;;YACtD,IAAI,CAAC,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC,CAAA,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;gBAC9E,OAAO;aACV;YAED,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAClE,IAAA,iDAAqB,EAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAY,EAAE,WAAmB,EAAE,EAAE;gBAC/E,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,EAAE;oBAC1B,OAAO;iBACV;gBAED,IAAA,4CAAgB,EACZ,OAAO,EACP,KAAK,CAAC,UAAU,GAAG,WAAW,EAC9B,SAAS,EACT,IAAI,CAAC,MAAM,EACX,IAAI,EACJ,IAAI,CACP,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm002: Rule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm003: Rule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm004: Rule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm005: Rule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm006: Rule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm007: Rule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm008: Rule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Rule } from 'markdownlint';
|
|
1
|
+
import type { Rule } from 'markdownlint';
|
|
2
2
|
export declare const yfm009: Rule;
|
package/lib/yfmlint/typings.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dictionary } from 'lodash';
|
|
2
|
-
import { Plugin, Rule } from 'markdownlint';
|
|
3
|
-
import { MarkdownItPreprocessorCb } from '../typings';
|
|
4
|
-
import { LintConfig, PluginOptions } from '.';
|
|
2
|
+
import type { Plugin, Rule } from 'markdownlint';
|
|
3
|
+
import type { MarkdownItPreprocessorCb } from '../typings';
|
|
4
|
+
import type { LintConfig, PluginOptions } from '.';
|
|
5
5
|
export interface Options {
|
|
6
6
|
input: string;
|
|
7
7
|
plugins?: Function[] | Plugin;
|
package/lib/yfmlint/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dictionary } from 'lodash';
|
|
2
|
-
import { LintError } from 'markdownlint';
|
|
3
|
-
import { LogLevels } from '../log';
|
|
2
|
+
import type { LintError } from 'markdownlint';
|
|
3
|
+
import type { LogLevels } from '../log';
|
|
4
4
|
export declare function errorToString(path: string, error: LintError, sourceMap?: Dictionary<string>): string;
|
|
5
5
|
export declare function getLogLevel(opts: {
|
|
6
6
|
ruleNames: string[];
|
package/lib/yfmlint/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/transform/yfmlint/utils.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/transform/yfmlint/utils.ts"],"names":[],"mappings":";;;AAIA,+BAAyB;AAEzB,SAAgB,aAAa,CAAC,IAAY,EAAE,KAAgB,EAAE,SAA8B;IACxF,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS;QAC/B,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,UAAG,CAAC;QAC3B,CAAC,CAAC,4CAA4C;YAC5C,KAAK,CAAC,QAAQ,GAAG,UAAG,GAAG,KAAK,CAAC,SAAS,CAAC;IAC7C,MAAM,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;IAE9E,OAAO,CACH,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,WAAW,IAAI,KAAK,CAAC,eAAe,EAAE;QACzF,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,KAAK,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CACpE,CAAC;AACN,CAAC;AAZD,sCAYC;AAED,SAAgB,WAAW,CAAC,IAI3B;IACG,MAAM,EAAC,SAAS,EAAE,eAAe,EAAE,YAAY,EAAC,GAAG,IAAI,CAAC;IACxD,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CAC7B,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,IAAI,eAAe,CAC5C,CAAC,CAAC,CAAiC,CAAC;IAErC,OAAO,eAAe,CAAC,QAAQ,CAAC,IAAI,YAAY,CAAC;AACrD,CAAC;AAXD,kCAWC"}
|
package/lib/yfmlint/yfmlint.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yfmlint.js","sourceRoot":"","sources":["../../src/transform/yfmlint/yfmlint.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"yfmlint.js","sourceRoot":"","sources":["../../src/transform/yfmlint/yfmlint.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diplodoc/transform",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.58.0",
|
|
4
4
|
"description": "A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@diplodoc/cut-extension": "^0.7.2",
|
|
53
53
|
"@diplodoc/file-extension": "^0.2.1",
|
|
54
54
|
"@diplodoc/tabs-extension": "^3.7.2",
|
|
55
|
+
"@diplodoc/utils": "^2.1.0",
|
|
55
56
|
"chalk": "^4.1.2",
|
|
56
57
|
"cheerio": "^1.0.0",
|
|
57
58
|
"css": "^3.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {HighlightLangMap} from './typings';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {escapeHtml} from 'markdown-it/lib/common/utils';
|
|
4
4
|
|
|
5
5
|
export = function makeHighlight(langs: HighlightLangMap = {}) {
|
|
6
6
|
try {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type {SourceMapApi} from './sourceMap';
|
|
2
|
+
|
|
1
3
|
import {bold} from 'chalk';
|
|
2
4
|
|
|
3
5
|
import {log} from '../log';
|
|
4
6
|
|
|
5
7
|
import {NoValue, evalExp} from './evaluation';
|
|
6
8
|
import {tagLine} from './lexical';
|
|
7
|
-
import {
|
|
9
|
+
import {createSourceMapApi, getLineNumber} from './sourceMap';
|
|
8
10
|
import legacyConditions from './legacyConditions';
|
|
9
11
|
|
|
10
12
|
interface SourceMap {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {Dictionary} from 'lodash';
|
|
2
|
+
import type {ArgvSettings} from './services/argv';
|
|
2
3
|
|
|
3
4
|
import cloneDeepWith from 'lodash/cloneDeepWith';
|
|
4
5
|
|
|
@@ -8,7 +9,7 @@ import applySubstitutions from './substitutions';
|
|
|
8
9
|
import {prepareSourceMap} from './sourceMap';
|
|
9
10
|
import applyCycles from './cycles';
|
|
10
11
|
import applyConditions from './conditions';
|
|
11
|
-
import ArgvService
|
|
12
|
+
import ArgvService from './services/argv';
|
|
12
13
|
|
|
13
14
|
const fence = '```';
|
|
14
15
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type {MarkdownItPluginOpts} from '../typings';
|
|
2
|
+
|
|
1
3
|
import chain from 'lodash/chain';
|
|
2
4
|
import {sep} from 'path';
|
|
3
5
|
|
|
4
6
|
import {getSinglePageAnchorId, resolveRelativePath} from '../../utilsFS';
|
|
5
7
|
import {transformLinkToOriginalArticle} from '../../utils';
|
|
6
8
|
import {сarriage} from '../utils';
|
|
7
|
-
import {MarkdownItPluginOpts} from '../typings';
|
|
8
9
|
|
|
9
10
|
import {CUSTOM_ID_EXCEPTION, CUSTOM_ID_REGEXP} from './constants';
|
|
10
11
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
2
|
+
import type Token from 'markdown-it/lib/token';
|
|
3
|
+
import type {MarkdownItPluginCb} from '../typings';
|
|
4
|
+
|
|
1
5
|
import {bold} from 'chalk';
|
|
2
6
|
import GithubSlugger from 'github-slugger';
|
|
3
|
-
import StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
4
|
-
import Token from 'markdown-it/lib/token';
|
|
5
7
|
import {escapeHtml} from 'markdown-it/lib/common/utils';
|
|
6
8
|
import slugify from 'slugify';
|
|
7
9
|
|
|
8
10
|
import {headingInfo} from '../../utils';
|
|
9
|
-
import {MarkdownItPluginCb} from '../typings';
|
|
10
11
|
|
|
11
12
|
import {ANCHOR_TITLES, CUSTOM_ID_EXCEPTION, CUSTOM_ID_REGEXP} from './constants';
|
|
12
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
2
|
-
import Token from 'markdown-it/lib/token';
|
|
1
|
+
import type StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
2
|
+
import type Token from 'markdown-it/lib/token';
|
|
3
3
|
|
|
4
4
|
const pattern = /^{%[^\S\r\n]*anchor[^\S\r\n]+([\w-]+)[^\S\r\n]*%}/;
|
|
5
5
|
export const TOKEN_NAME = 'anchor';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type {MarkdownItPluginOpts} from '../typings';
|
|
2
|
+
import type {ChangelogItem} from './types';
|
|
3
|
+
|
|
1
4
|
import {bold} from 'chalk';
|
|
2
5
|
|
|
3
6
|
import initMarkdownIt from '../../md';
|
|
4
7
|
import imsize from '../imsize';
|
|
5
|
-
import {MarkdownItPluginOpts} from '../typings';
|
|
6
|
-
|
|
7
|
-
import {ChangelogItem} from './types';
|
|
8
8
|
|
|
9
9
|
import changelogPlugin from './index';
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Core from 'markdown-it/lib/parser_core';
|
|
2
|
-
import Token from 'markdown-it/lib/token';
|
|
1
|
+
import type Core from 'markdown-it/lib/parser_core';
|
|
2
|
+
import type Token from 'markdown-it/lib/token';
|
|
3
|
+
import type StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
4
|
+
import type {MarkdownItPluginCb} from '../typings';
|
|
5
|
+
|
|
3
6
|
import {bold} from 'chalk';
|
|
4
7
|
import yaml from 'js-yaml';
|
|
5
|
-
import StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
6
|
-
|
|
7
|
-
import {MarkdownItPluginCb} from '../typings';
|
|
8
8
|
|
|
9
9
|
interface Options {
|
|
10
10
|
extractChangelogs?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
|
|
3
|
-
import {MarkdownItPluginCb} from './typings';
|
|
3
|
+
import type {MarkdownItPluginCb} from './typings';
|
|
4
|
+
|
|
4
5
|
import {generateID} from './utils';
|
|
5
6
|
|
|
6
7
|
const wrapInClipboard = (element: string | undefined, id: number) => {
|
|
@@ -53,7 +54,7 @@ interface EnvTerm {
|
|
|
53
54
|
|
|
54
55
|
function termReplace(str: string, env: EnvTerm, escape: (str: string) => string): string {
|
|
55
56
|
const regTerms = Object.keys(env.terms)
|
|
56
|
-
.map((el) => el.
|
|
57
|
+
.map((el) => el.slice(1))
|
|
57
58
|
.map(escape)
|
|
58
59
|
.join('|');
|
|
59
60
|
const regText = '\\[([^\\[]+)\\](\\(\\*(' + regTerms + ')\\))';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type {MarkdownItPluginOpts} from '../typings';
|
|
2
|
+
|
|
1
3
|
import MarkdownIt from 'markdown-it';
|
|
2
4
|
import {relative} from 'path';
|
|
3
5
|
|
|
@@ -5,7 +7,6 @@ import {isLocalUrl} from '../../utils';
|
|
|
5
7
|
import {resolveRelativePath} from '../../utilsFS';
|
|
6
8
|
import deflist from '../deflist';
|
|
7
9
|
import imsize from '../imsize';
|
|
8
|
-
import {MarkdownItPluginOpts} from '../typings';
|
|
9
10
|
|
|
10
11
|
type Options = MarkdownItPluginOpts & {
|
|
11
12
|
destPath: string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import type Token from 'markdown-it/lib/token';
|
|
2
|
+
import type {MarkdownItPluginCb, MarkdownItPluginOpts} from '../typings';
|
|
3
|
+
import type {StateCore} from '../../typings';
|
|
4
|
+
|
|
1
5
|
import {join, sep} from 'path';
|
|
2
6
|
import {bold} from 'chalk';
|
|
3
7
|
import {optimize} from 'svgo';
|
|
4
|
-
import Token from 'markdown-it/lib/token';
|
|
5
8
|
import {readFileSync} from 'fs';
|
|
6
9
|
|
|
7
10
|
import {isFileExists, resolveRelativePath} from '../../utilsFS';
|
|
8
11
|
import {isExternalHref, isLocalUrl} from '../../utils';
|
|
9
|
-
import {MarkdownItPluginCb, MarkdownItPluginOpts} from '../typings';
|
|
10
|
-
import {StateCore} from '../../typings';
|
|
11
12
|
|
|
12
13
|
interface ImageOpts extends MarkdownItPluginOpts {
|
|
13
14
|
assetsPublicPath: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {PluginWithOptions} from 'markdown-it';
|
|
1
|
+
import type {PluginWithOptions} from 'markdown-it';
|
|
2
|
+
import type {ImsizeOptions} from './plugin';
|
|
2
3
|
|
|
3
|
-
import {
|
|
4
|
+
import {imageWithSize} from './plugin';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Imsize plugin for markdown-it.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type {IncludeCollectOpts} from './types';
|
|
2
|
+
|
|
1
3
|
import {relative} from 'path';
|
|
2
4
|
import {bold} from 'chalk';
|
|
3
5
|
import {readFileSync} from 'fs';
|
|
4
6
|
|
|
5
7
|
import {isFileExists, resolveRelativePath} from '../../utilsFS';
|
|
6
8
|
|
|
7
|
-
import {IncludeCollectOpts} from './types';
|
|
8
|
-
|
|
9
9
|
const includesPaths: string[] = [];
|
|
10
10
|
|
|
11
11
|
function processRecursive(
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
+
import type Token from 'markdown-it/lib/token';
|
|
2
|
+
import type {StateCore} from '../../typings';
|
|
3
|
+
import type {GetFileTokensOpts} from '../../utilsFS';
|
|
4
|
+
import type {MarkdownItPluginCb, MarkdownItPluginOpts} from '../typings';
|
|
5
|
+
import type {MarkdownItIncluded} from './types';
|
|
6
|
+
|
|
1
7
|
import {bold} from 'chalk';
|
|
2
|
-
import Token from 'markdown-it/lib/token';
|
|
3
|
-
|
|
4
|
-
import {StateCore} from '../../typings';
|
|
5
|
-
import {
|
|
6
|
-
GetFileTokensOpts,
|
|
7
|
-
getFileTokens,
|
|
8
|
-
getFullIncludePath,
|
|
9
|
-
getRealPath,
|
|
10
|
-
isFileExists,
|
|
11
|
-
} from '../../utilsFS';
|
|
12
|
-
import {findBlockTokens} from '../../utils';
|
|
13
|
-
import {MarkdownItPluginCb, MarkdownItPluginOpts} from '../typings';
|
|
14
8
|
|
|
15
|
-
import {
|
|
9
|
+
import {findBlockTokens} from '../../utils';
|
|
10
|
+
import {getFileTokens, getFullIncludePath, getRealPath, isFileExists} from '../../utilsFS';
|
|
16
11
|
|
|
17
12
|
const INCLUDE_REGEXP = /^{%\s*include\s*(notitle)?\s*\[(.+?)]\((.+?)\)\s*%}$/;
|
|
18
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {MarkdownIt} from '../../typings';
|
|
2
|
-
import {MarkdownItPluginOpts} from '../typings';
|
|
1
|
+
import type {MarkdownIt} from '../../typings';
|
|
2
|
+
import type {MarkdownItPluginOpts} from '../typings';
|
|
3
3
|
|
|
4
4
|
export interface MarkdownItIncluded extends MarkdownIt {
|
|
5
5
|
included?: {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import type Token from 'markdown-it/lib/token';
|
|
2
|
+
import type {Logger} from 'src/transform/log';
|
|
3
|
+
import type {CacheContext, StateCore} from '../../typings';
|
|
4
|
+
import type {MarkdownItPluginCb, MarkdownItPluginOpts} from '../typings';
|
|
5
|
+
import type {MarkdownItIncluded} from '../includes/types';
|
|
6
|
+
|
|
1
7
|
import url from 'url';
|
|
2
8
|
import {bold} from 'chalk';
|
|
3
|
-
import Token from 'markdown-it/lib/token';
|
|
4
9
|
import path, {isAbsolute, parse, relative, resolve} from 'path';
|
|
5
10
|
|
|
6
|
-
import {Logger} from 'src/transform/log';
|
|
7
|
-
|
|
8
11
|
import {
|
|
9
12
|
PAGE_LINK_REGEXP,
|
|
10
13
|
defaultTransformLink,
|
|
@@ -14,9 +17,6 @@ import {
|
|
|
14
17
|
isLocalUrl,
|
|
15
18
|
} from '../../utils';
|
|
16
19
|
import {getFileTokens, isFileExists} from '../../utilsFS';
|
|
17
|
-
import {CacheContext, StateCore} from '../../typings';
|
|
18
|
-
import {MarkdownItPluginCb, MarkdownItPluginOpts} from '../typings';
|
|
19
|
-
import {MarkdownItIncluded} from '../includes/types';
|
|
20
20
|
|
|
21
21
|
function getTitleFromTokens(tokens: Token[]) {
|
|
22
22
|
let title = '';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import {MarkdownItPluginCb} from './typings';
|
|
1
|
+
import type {Delimiter} from 'markdown-it/lib/rules_inline/state_inline';
|
|
2
|
+
import type StateInline from 'markdown-it/lib/rules_inline/state_inline';
|
|
3
|
+
import type {MarkdownItPluginCb} from './typings';
|
|
4
4
|
|
|
5
5
|
const monospace: MarkdownItPluginCb = (md) => {
|
|
6
6
|
function postProcess(state: StateInline, delimiters: Delimiter[]) {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
2
|
+
import type Token from 'markdown-it/lib/token';
|
|
3
|
+
import type {MarkdownItPluginCb} from '../typings';
|
|
4
|
+
import type {MatchTokenFunction} from '../utils';
|
|
5
|
+
|
|
1
6
|
import {bold} from 'chalk';
|
|
2
|
-
import StateCore from 'markdown-it/lib/rules_core/state_core';
|
|
3
|
-
import Token from 'markdown-it/lib/token';
|
|
4
7
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
8
|
+
import {nestedCloseTokenIdxFactory as closeTokenFactory} from '../utils';
|
|
9
|
+
import {DEFAULT_LANG} from '../../constants';
|
|
7
10
|
|
|
8
11
|
import {TITLES} from './constants';
|
|
9
12
|
|
|
@@ -18,6 +21,16 @@ const matchCloseToken: MatchTokenFunction = (tokens, i) => {
|
|
|
18
21
|
);
|
|
19
22
|
};
|
|
20
23
|
|
|
24
|
+
function getTitle(type: string, originLang: string) {
|
|
25
|
+
let lang = originLang;
|
|
26
|
+
|
|
27
|
+
if (!lang || !Object.keys(TITLES).includes(lang)) {
|
|
28
|
+
lang = DEFAULT_LANG;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return TITLES[lang as keyof typeof TITLES][type];
|
|
32
|
+
}
|
|
33
|
+
|
|
21
34
|
function matchOpenToken(tokens: Token[], i: number) {
|
|
22
35
|
return (
|
|
23
36
|
tokens[i].type === 'paragraph_open' &&
|
|
@@ -36,8 +49,14 @@ function matchWrongNotes(tokens: Token[], i: number) {
|
|
|
36
49
|
|
|
37
50
|
const findCloseTokenIdx = closeTokenFactory('Note', matchOpenToken, matchCloseToken);
|
|
38
51
|
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
type NotesPluginParams = {
|
|
53
|
+
notesAutotitle: boolean;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const index: MarkdownItPluginCb<NotesPluginParams> = (
|
|
57
|
+
md,
|
|
58
|
+
{lang = DEFAULT_LANG, notesAutotitle, path: optPath, log},
|
|
59
|
+
) => {
|
|
41
60
|
notesAutotitle = typeof notesAutotitle === 'boolean' ? notesAutotitle : true;
|
|
42
61
|
|
|
43
62
|
const plugin = (state: StateCore) => {
|
|
@@ -75,7 +94,7 @@ const index: MarkdownItPluginCb = (md, {lang = 'en', notesAutotitle, path: optPa
|
|
|
75
94
|
// Add extra paragraph
|
|
76
95
|
const titleOpen = new state.Token('yfm_note_title_open', 'p', 1);
|
|
77
96
|
titleOpen.attrSet('class', 'yfm-note-title');
|
|
78
|
-
const autotitle = notesAutotitle ?
|
|
97
|
+
const autotitle = notesAutotitle ? getTitle(type, lang) : '';
|
|
79
98
|
const titleContent = match[2] === undefined ? autotitle : match[2];
|
|
80
99
|
const titleInline = state.md.parseInline(titleContent, state.env)[0];
|
|
81
100
|
titleInline.map = null;
|