Can I define a class name on paragraph using Markdown?

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

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

10条回答
  •  一生所求
    2020-12-02 08:41

    Markdown should have this capability, but it doesn't. Instead, you're stuck with language-specific Markdown supersets:

    PHP: Markdown Extra
    Ruby: Kramdown, Maruku

    But if you need to abide by true Markdown syntax, you're stuck with inserting raw HTML, which is less ideal.

提交回复
热议问题