diff --git a/docs/src/modules/components/MarkdownDocs.js b/docs/src/modules/components/MarkdownDocs.js index 9a467e25b6deeb..1bc5b0a12746fc 100644 --- a/docs/src/modules/components/MarkdownDocs.js +++ b/docs/src/modules/components/MarkdownDocs.js @@ -177,6 +177,11 @@ function MarkdownDocs(props) { )} + + + + + {!disableEdit ? (
diff --git a/docs/src/modules/components/MarkdownElement.js b/docs/src/modules/components/MarkdownElement.js index 01f801e60bfa9f..ff193834398e6d 100644 --- a/docs/src/modules/components/MarkdownElement.js +++ b/docs/src/modules/components/MarkdownElement.js @@ -27,16 +27,15 @@ renderer.heading = (text, level) => { } // eslint-disable-next-line no-underscore-dangle - const escapedText = textToHash(text, global.__MARKED_UNIQUE__); + const hash = textToHash(text, global.__MARKED_UNIQUE__); return [ ``, - `${text}`, - typeof window !== 'undefined' - ? `` + - `` + - `` - : null, + ``, + text, + `', ``, ].join(''); };