Material-ui: ブログレイアウトの例のマークダウンが機能しない

作成日 2018年11月03日  ·  3コメント  ·  ソース: mui-org/material-ui

ブログのサンプルページからファイルを貼り付けましたが、.mdファイルが画面に読み込まれません。

それが私にどのように見えるかを見てください。

私は何が間違っているのですか?

誰かが私を助ける方法を知っていますか?

どうもありがとうございました。
マルコ

image

question

最も参考になるコメント

@Marcosul create-react-appはhttps

  • マークダウンファイルを、マークダウンを文字列としてエクスポートするJavaScriptモジュールに変換できます。
--- a/blog-post.md
+++ b/blog-post.md.js
-## Sample blog post

-#### April 1, 2020 by Olivier

-This blog post shows a few different types of content that are supported and styled with
-Material styles. Basic typography, images, and code are all supported.
-You can extend these by modifying `Markdown.js`.
+export default `
+## Sample blog post

+#### April 1, 2020 by Olivier

+This blog post shows a few different types of content that are supported and styled with
+Material styles. Basic typography, images, and code are all supported.
+You can extend these by modifying `Markdown.js`.
+`;
  • このwebpackローダーを取り出して追加できます。

全てのコメント3件

@Marcosulバンドラーでマークダウンのコンテンツの読み込みに問題があり、ファイル名で停止します。

https://github.com/mui-org/material-ui/blob/7e32503b40a57f42f906add50a2ace9341aa0895/docs/src/pages/page-layout-examples/blog/Blog.js#L17 -L20

webpackを使用している場合は、マークダウン拡張機能( .md )を処理するようにraw-loaderを構成できます。

こんにちはオリバー、私はウェブパックを使用していません。 からreact-create-appを使用しました
muiwueのリポジトリにwebpackがありません。 私はどのように行いますか?

ありがとう

エムドム、4・デ・11月・デ2018年9時31分、オリヴィエTassinari [email protected]
escreveu:

@Marcosulhttps //github.com/Marcosulバンドラーに問題があります
マークダウンのコンテンツをロードすると、ファイル名で停止します。

https://github.com/mui-org/material-ui/blob/7e32503b40a57f42f906add50a2ace9341aa0895/docs/src/pages/page-layout-examples/blog/Blog.js#L17 -L20

webpackを使用している場合は、rawローダーを構成できます
マークダウンを処理するためのhttps://github.com/webpack-contrib/raw-loader
拡張子(.md)。


あなたが言及されたのであなたはこれを受け取っています。
このメールに直接返信し、GitHubで表示してください
https://github.com/mui-org/material-ui/issues/13501#issuecomment-435661845
またはスレッドをミュートします
https://github.com/notifications/unsubscribe-auth/AEfuIsetDNby_ZrJfYIS-kyA1aIa2nqIks5urs_4gaJpZM4YNAFA

@Marcosul create-react-appはhttps

  • マークダウンファイルを、マークダウンを文字列としてエクスポートするJavaScriptモジュールに変換できます。
--- a/blog-post.md
+++ b/blog-post.md.js
-## Sample blog post

-#### April 1, 2020 by Olivier

-This blog post shows a few different types of content that are supported and styled with
-Material styles. Basic typography, images, and code are all supported.
-You can extend these by modifying `Markdown.js`.
+export default `
+## Sample blog post

+#### April 1, 2020 by Olivier

+This blog post shows a few different types of content that are supported and styled with
+Material styles. Basic typography, images, and code are all supported.
+You can extend these by modifying `Markdown.js`.
+`;
  • このwebpackローダーを取り出して追加できます。
このページは役に立ちましたか?
0 / 5 - 0 評価