Can I define a class name on paragraph using Markdown?

后端 未结 10 1039
灰色年华
灰色年华 2020-12-02 08:04

Can I define a class name on paragraph using Markdown? If so, how?

10条回答
  •  生来不讨喜
    2020-12-02 08:56

    If your flavour of markdown is kramdown, then you can set css class like this:

    {:.nameofclass}
    paragraph is here
    

    Then in you css file, you set the css like this:

    .nameofclass{
       color: #000;
      }
    

提交回复
热议问题