@@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/node_modules/@diplodoc/transform/lib/md.js b/node_modules/@diplodoc/transform/lib/md.js
|
||||||
|
index a2d222e..8d1377e 100644
|
||||||
|
--- a/node_modules/@diplodoc/transform/lib/md.js
|
||||||
|
+++ b/node_modules/@diplodoc/transform/lib/md.js
|
||||||
|
@@ -101,8 +101,12 @@ function initPlugins(md, options, pluginOptions) {
|
||||||
|
}
|
||||||
|
md.use(ol_attr_conversion_1.olAttrConversion);
|
||||||
|
plugins.forEach((plugin) => md.use(plugin, pluginOptions));
|
||||||
|
- if (linkify && linkifyTlds) {
|
||||||
|
- md.linkify.tlds(linkifyTlds, true);
|
||||||
|
+ if (linkify) {
|
||||||
|
+ if (linkifyTlds) {
|
||||||
|
+ md.linkify.tlds(linkifyTlds, true);
|
||||||
|
+ } else if (linkifyTlds === null) {
|
||||||
|
+ md.linkify.set({ fuzzyLink: false });
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function initParser(md, options, env, pluginOptions) {
|
||||||
@@ -22,6 +22,20 @@ index 288d462..8851e98 100644
|
|||||||
yfmHeading: {
|
yfmHeading: {
|
||||||
h1Key: f.toPM(A.Heading1),
|
h1Key: f.toPM(A.Heading1),
|
||||||
h2Key: f.toPM(A.Heading2),
|
h2Key: f.toPM(A.Heading2),
|
||||||
|
diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/core/ExtensionsManager.js b/node_modules/@gravity-ui/markdown-editor/build/esm/core/ExtensionsManager.js
|
||||||
|
index 8aefe20..99e59e3 100644
|
||||||
|
--- a/node_modules/@gravity-ui/markdown-editor/build/esm/core/ExtensionsManager.js
|
||||||
|
+++ b/node_modules/@gravity-ui/markdown-editor/build/esm/core/ExtensionsManager.js
|
||||||
|
@@ -42,6 +42,9 @@ export class ExtensionsManager {
|
||||||
|
if (options.linkifyTlds) {
|
||||||
|
this.#mdForMarkup.linkify.tlds(options.linkifyTlds, true);
|
||||||
|
this.#mdForText.linkify.tlds(options.linkifyTlds, true);
|
||||||
|
+ } else if (options.linkifyTlds === null) {
|
||||||
|
+ this.#mdForMarkup.linkify.set({ fuzzyLink: false });
|
||||||
|
+ this.#mdForText.linkify.set({ fuzzyLink: false });
|
||||||
|
}
|
||||||
|
if (options.pmTransformers) {
|
||||||
|
this.#pmTransformers = options.pmTransformers;
|
||||||
diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js b/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js
|
diff --git a/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js b/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js
|
||||||
index 212c583..b709383 100644
|
index 212c583..b709383 100644
|
||||||
--- a/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js
|
--- a/node_modules/@gravity-ui/markdown-editor/build/esm/extensions/yfm/YfmNote/YfmNoteSpecs/index.js
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ const Markdown = React.memo(({ children }) => {
|
|||||||
plugins,
|
plugins,
|
||||||
breaks: true,
|
breaks: true,
|
||||||
linkify: true,
|
linkify: true,
|
||||||
|
linkifyTlds: null,
|
||||||
sanitizeOptions: {
|
sanitizeOptions: {
|
||||||
...defaultSanitizeOptions,
|
...defaultSanitizeOptions,
|
||||||
allowedSchemesByTag: { img: ['http', 'https', 'data'] },
|
allowedSchemesByTag: { img: ['http', 'https', 'data'] },
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ const MarkdownEditor = React.forwardRef(
|
|||||||
md: {
|
md: {
|
||||||
breaks: true,
|
breaks: true,
|
||||||
linkify: true,
|
linkify: true,
|
||||||
|
linkifyTlds: null,
|
||||||
},
|
},
|
||||||
handlers: {
|
handlers: {
|
||||||
uploadFile: fileUploadHandler,
|
uploadFile: fileUploadHandler,
|
||||||
|
|||||||
Reference in New Issue
Block a user