Markdown `native` text alignment

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

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

相关标签:
11条回答
  • 2020-11-28 04:56

    native markdown doesn't support text alignment without html + css.

    0 讨论(0)
  • The div element has its own alignment attribute, align.

    <div align="center">
      my text here.
    </div>
    
    0 讨论(0)
  • 2020-11-28 04:58

    In order to center text in md files you can use the center tag like html tag:

    <center>Centered text</center>
    
    0 讨论(0)
  • 2020-11-28 04:58

    To center align, surround the text you wish to center align with arrows (-> <-) like so:

    -> This is center aligned <-
    
    0 讨论(0)
  • 2020-11-28 05:06

    I known this isn't markdown, but <p align="center"> worked for me, so if anyone figures out the markdown syntax instead I'll be happy to use that. Until then I'll use the HTML tag.

    0 讨论(0)
  • 2020-11-28 05:09

    For python markdown with attr_list extension the syntax is a little different:

    {: #someid .someclass somekey='some value' }
    

    Example:

    [Click here](http://exmaple.com){: .btn .btn-primary }
    
    Lead information paragraph
    {: .lead }
    
    0 讨论(0)
提交回复
热议问题