我正在制作一个教科书网站,其中作者每个人都贡献一个教科书文件夹,其中包含一个 markdown 文件夹和一个图像文件夹:
\ntextbooks\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80textbook-1\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80images\n\xe2\x94\x82 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80markdown-files\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80textbook-2\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80images\n \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80markdown-files\nRun Code Online (Sandbox Code Playgroud)\n我将教科书文件夹存储在项目根文件夹中,并使用 \'fs\' 在构建时读取文件。到目前为止,我必须手动将图像文件夹放入公共文件夹中,以便在 Markdown 页面中使用它们。有没有办法动态导入这些图像文件而不将它们放入公共文件夹中?
\n我正在使用 ReactMarkdown 来渲染 markdown,我正在考虑类似的事情:
\ntextbooks\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80textbook-1\n\xe2\x94\x82 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80images\n\xe2\x94\x82 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80markdown-files\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80textbook-2\n \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80images\n \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80markdown-files\nRun Code Online (Sandbox Code Playgroud)\n但它不起作用......
\n<?php
namespace Illuminate\Auth\Notifications;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\Lang;
class ResetPassword extends Notification
{
/**
* The password reset token.
*
* @var string
*/
public $token;
/**
* The callback that should be used to create the reset password URL.
*
* @var \Closure|null
*/
public static $createUrlCallback;
/**
* The callback that should be used to build the mail message.
*
* @var \Closure|null
*/
public static $toMailCallback;
/**
* Create a notification instance.
*
* @param string …Run Code Online (Sandbox Code Playgroud)