2

How do i create text align in Markdown Extra syntax without using HTML tags(i need to simplify post typing for users)? Or how do i extend Markdown PHP Extra to add some new rules like this:

->here is centered text <- to <center> </center>

sorry for my english

  • What have you tried? The source is available at https://github.com/michelf/php-markdown/blob/extra/markdown.php for you to hack upon. – Treffynnon Feb 16 '12 at 16:54
  • 1
    Be aware that the `
    ` tag is deprecated. Instead, you should use a styled `` or other element with a `text-align` property.
    – Borealid Feb 16 '12 at 18:56
  • I need to use only markdown extra in something "like forum reply" without html. Does markdown extra have some extentions to add text align, or how could i write the rule for parser? I don't fully understand source code. Where could i find some example on extend Markdown Extra? – user1214331 Feb 16 '12 at 21:55

0 Answers0