Material-ui: تخفيض السعر في مثال تخطيط المدونة لا يعمل

تم إنشاؤها على ٣ نوفمبر ٢٠١٨  ·  3تعليقات  ·  مصدر: mui-org/material-ui

لقد قمت بلصق الملفات من صفحة نموذج المدونة ولكن لا يتم تحميل ملفات .md على الشاشة.

انظر كيف يبدو لي.

ما الخطأ الذي افعله؟

هل يعرف أحد كيف يساعدني؟

شكرا جزيلا.
ماركو

image

question

التعليق الأكثر فائدة

Marcosul يبدو أن تطبيق create- https://github.com/facebook/create-react-app/issues/3722. يمكنني التفكير في حلين:

  • يمكنك تحويل ملف markdown إلى وحدة JavaScript النمطية التي تصدر علامة markdown كسلسلة.
--- 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

إذا كنت تستخدم حزمة الويب ، يمكنك تكوين raw-loader للتعامل مع ملحق تخفيض السعر ( .md ).

مرحبًا أوليفر ، أنا لا أستخدم حزمة الويب. لقد استخدمت تطبيق التفاعل - الإنشاء من
لا يحتوي مستودع mui wue على حزمة الويب. كيف افعل

شكر

Em Dom، 4 de nov de 2018 09:31، Olivier Tassinari [email protected]
escreveu:

Marcosul https://github.com/Marcosul تواجه حزمة التجميع مشاكل
تحميل محتوى تخفيض السعر ، يتوقف عند اسم الملف:

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

إذا كنت تستخدم حزمة الويب ، فيمكنك تكوين أداة التحميل الأولية
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- https://github.com/facebook/create-react-app/issues/3722. يمكنني التفكير في حلين:

  • يمكنك تحويل ملف markdown إلى وحدة JavaScript النمطية التي تصدر علامة markdown كسلسلة.
--- 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 التقييمات