reactjs - Markdown 文件无法处理无序列表 Gatsby
问题描述
我正在使用 Gatsby 建立一个新网站。我想为博客呈现一些降价文件,但它似乎无法根据降价语法处理列表/无序列表。例如,这是语法:
* Purple dots are points on the graph, each point has an x and y coordinate. These are your observed values
* Blue line is the prediction line, covering the estimated values of the model
* The red line between each purple point and the prediction line are the errors. Each error is the distance from the point to its predicted point.
这是输出:
我还发现无法#
用于标题。例如,这是我的帖子描述和标题:
_Making Use of the scipy.optimize Library in Python to Minimize Error_
## Revision
输出:
我不确定我需要在 Gatsby 中进行哪些更改才能正确呈现降价?
解决方案
您的代码正在正确呈现降价文件,但是,您没有添加任何样式以使它们看起来像无序列表或标题。
只需添加您的样式表文件:
import './yourStyles.scss'
在yourStyles.scss
:
h1 {
font-size: 3rem;
color: red;
}
ul {
list-style-type: default; // change it by desired value
}
推荐阅读
- reactjs - 等待 setState 完成,然后返回数据
- installation - 如何使用 Portacle IDE 在 Common Lisp 中实现 Common Music?
- node.js - 为什么我的服务器会从两个不同的页面向同一个 put 函数发出代理请求,并且只在一个页面上工作?
- flutter - 在物理设备上运行颤振应用程序时出现错误
- angular - 条件使用 isDevMode 不会被摇树
- python - DFGUI (Kivy) 没有属性“显示”
- c# - TestWebACL 错误原因:您的语句为一个字段设置了多个值,而该字段只需要一个值
- java - Maven 项目中的 ClassNotFoundException 问题
- python - 我希望在 tkinter 中显示图像
- c# - 我的班级似乎有 2 个同名的不同变量