根据
remarkjs wiki,您需要添加以下行以包含您的降价文件
var slideshow = remark.create({
sourceUrl: 'markdown.md'
});
以下是一个完整的例子
A title@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,400italic);
body { font-family: 'Droid Serif'; }
h1,h2,h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
}
.remark-code,.remark-inline-code { font-family: 'Ubuntu Mono'; }
var slideshow = remark.create({
sourceUrl: 'your_file.md'
});