我正在使用盖茨比(Gatsby)建立一个新网站。我想为博客呈现一些markdown文件,但是它似乎无法根据markdown语法处理列表/无序列表。例如,这是语法:
* 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中需要更改哪些内容才能正确呈现降价促销?
答案 0 :(得分:2)
您的代码可以正确呈现markdown文件,但是,您尚未添加任何样式以使它们看起来像无序列表或标题。
只需添加样式表文件:
import './yourStyles.scss'
在yourStyles.scss
中:
h1 {
font-size: 3rem;
color: red;
}
ul {
list-style-type: default; // change it by desired value
}