How to use CSS in Markdown?

后端 未结 3 1633
野性不改
野性不改 2021-02-01 03:28

I want to use a CSS class in a Markdown file.

For instance, (from fontawesome) should be displayed as

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 04:19

    First of all, most of the markdown implementations allow you to use plain html

    Where as some markdown implementations offer you an additional syntax for attributes, like ids and classes (e.g. php-markdown {#id .class} for block elements)

    As far as I know, fontawesome always needs the leading -tag. Other iconfonts (like weloveiconfonts) add the icon to a existing html tag

    text

    , in markdown-extra: ## text {.zocial-dribbble}.

提交回复
热议问题