docs: optimized cloudinary images (#3767)

This commit is contained in:
Shahed Nasser
2023-04-07 12:24:53 +03:00
committed by GitHub
parent abdb74d997
commit a7b57e8201
7 changed files with 212 additions and 2 deletions

View File

@@ -2,11 +2,11 @@ import React from 'react';
// Import the original mapper
import MDXComponents from '@theme-original/MDXComponents';
import InlineCode from './InlineCode'
import CloudinaryImage from '../../components/CloudinaryImage';
export default {
// Re-use the default mapping
...MDXComponents,
// Map the "highlight" tag to our <Highlight /> component!
// `Highlight` will receive all props that were passed to `highlight` in MDX
inlineCode: InlineCode,
img: CloudinaryImage
};