Markdown `native` text alignment

后端 未结 11 1308
有刺的猬
有刺的猬 2020-11-28 04:36

Does markdown support native text-alignment without usage html + css?

11条回答
  •  不知归路
    2020-11-28 05:20

    For Markdown Extra you can use custom attributes:

    # Example text {style=text-align:center}
    

    This works for headers and blockquotes, but not for paragraphs, inline elements and code blocks.

    A shorter version (but not supported in HTML 5):

    # Example text {align=center}
    

提交回复
热议问题