How to use markdown tags in textarea

时间:2017-06-15 10:24:55

标签: php markdown text-editor

How to use markdown tags in textarea. So when If write **Hello** and output would be Hello.

I want to use markdown tags in textarea where user write post content and publish it.

same like SO editor

1 个答案:

答案 0 :(得分:1)

使用PHP库进行Markdown

composer require michelf/php-markdown

参考:https://github.com/michelf/php-markdown