@diplodoc/transform 4.77.15 → 4.78.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/dist/js/yfm.js +234 -145
- package/dist/js/yfm.js.map +4 -4
- package/dist/js/yfm.min.js +3 -3
- package/dist/js/yfm.min.js.map +4 -4
- package/lib/index.d.ts +3 -0
- package/lib/index.js.map +1 -1
- package/lib/plugins/visibility.d.ts +42 -0
- package/lib/plugins/visibility.js +194 -0
- package/lib/plugins/visibility.js.map +1 -0
- package/lib/plugins.js +2 -0
- package/lib/plugins.js.map +1 -1
- package/lib/typings.d.ts +6 -0
- package/package.json +3 -2
- package/src/transform/index.ts +6 -0
- package/src/transform/plugins/visibility.ts +281 -0
- package/src/transform/plugins.ts +2 -0
- package/src/transform/typings.ts +6 -0
package/src/transform/typings.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type {SanitizeFunction, SanitizeOptions} from './sanitize';
|
|
|
6
6
|
import type {LogLevels, Logger} from './log';
|
|
7
7
|
import type {ChangelogItem} from './plugins/changelog/types';
|
|
8
8
|
import type {IDGenerator} from './plugins/utils';
|
|
9
|
+
import type {VisibilityMode} from './plugins/visibility';
|
|
9
10
|
|
|
10
11
|
export interface MarkdownIt extends DefaultMarkdownIt {
|
|
11
12
|
assets?: string[];
|
|
@@ -110,6 +111,10 @@ export interface OptionsType {
|
|
|
110
111
|
* @default false
|
|
111
112
|
*/
|
|
112
113
|
codeLineWrapping?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Selects audience-specific content. Defaults to `human`.
|
|
116
|
+
*/
|
|
117
|
+
contentAudience?: VisibilityMode;
|
|
113
118
|
/**
|
|
114
119
|
* Custom ID generator factory to use for this transform call.
|
|
115
120
|
* If provided, it will be called once per file to create a per-file isolated generator.
|
|
@@ -164,6 +169,7 @@ export interface MarkdownItPluginOpts {
|
|
|
164
169
|
* the next non-blank line is an `{% include %}` directive.
|
|
165
170
|
*/
|
|
166
171
|
multilineTermDefinitions?: boolean;
|
|
172
|
+
contentAudience?: VisibilityMode;
|
|
167
173
|
}
|
|
168
174
|
|
|
169
175
|
export type MarkdownItPluginCb<T extends {} = {}> = {
|