mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 13:06:58 +02:00
fix(mdx-loader): prevent Open Graph images from being inserted as base64 (#9369)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
15647a3abd
commit
e17784effa
2 changed files with 8 additions and 3 deletions
|
@ -20,6 +20,7 @@ type FileLoaderUtils = {
|
|||
file: (options: {folder: AssetFolder}) => RuleSetRule;
|
||||
url: (options: {folder: AssetFolder}) => RuleSetRule;
|
||||
inlineMarkdownImageFileLoader: string;
|
||||
inlineMarkdownAssetImageFileLoader: string;
|
||||
inlineMarkdownLinkFileLoader: string;
|
||||
};
|
||||
rules: {
|
||||
|
@ -74,6 +75,9 @@ export function getFileLoaderUtils(): FileLoaderUtils {
|
|||
)}?limit=${urlLoaderLimit}&name=${fileLoaderFileName(
|
||||
'images',
|
||||
)}&fallback=${escapePath(require.resolve('file-loader'))}!`,
|
||||
inlineMarkdownAssetImageFileLoader: `!${escapePath(
|
||||
require.resolve('file-loader'),
|
||||
)}?name=${fileLoaderFileName('images')}!`,
|
||||
inlineMarkdownLinkFileLoader: `!${escapePath(
|
||||
require.resolve('file-loader'),
|
||||
)}?name=${fileLoaderFileName('files')}!`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue