We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ec1af commit 8a523cbCopy full SHA for 8a523cb
packages/documentation/src/components/Markdown/renderers.tsx
@@ -1,5 +1,6 @@
1
import type { MarkdownRenderers } from "react-marked-renderer";
2
import {
3
+ EscapeRenderer,
4
DEFAULT_MARKDOWN_RENDERERS,
5
getTokensText,
6
ImageRenderer,
@@ -99,6 +100,15 @@ export const renderers: MarkdownRenderers = {
99
100
return <CodeBlock language={lang}>{text}</CodeBlock>;
101
},
102
103
+ escape: function Escape(props) {
104
+ // TODO: Remove after upgrading react-marked-renderer with this fix
105
+ if (props.text === "<") {
106
+ return <><</>;
107
+ }
108
+
109
+ return <EscapeRenderer {...props} />;
110
+ },
111
112
listitem: function ListItem({ children }) {
113
return (
114
<Typography component="li" type="subtitle-1">
0 commit comments