Passing raw Markdown text to Jade

后端 未结 4 1279
栀梦
栀梦 2021-02-02 09:57

I\'m playing around with my first Node.js Express application, and as every programmer knows, the first thing you should build when testing out a new framework is a blog! Anyway

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-02 10:54

    If you are using Scalate's Jade support you can enter:

    section
        :&markdown
            #{md}
    

    You can also import external files with:

    section
        :&markdown
            #{include("MyFile.md")}
    

提交回复
热议问题