开发者

Custom Markdown for PHP handling new lines

开发者 https://www.devze.com 2022-12-08 08:55 出处:网络
I need custom Markdown library for PHP which converts new lines to <br/> without the need to put double space on the end of the line, kinda like here on SO. I\'ve been looking on the web but wit

I need custom Markdown library for PHP which converts new lines to <br/> without the need to put double space on the end of the line, kinda like here on SO. I've been looking on the web but without success. I know I could just am开发者_运维技巧end standard library but my regex skills are none.

Does anybody know about such library in existence or know how to change default behaviour easily?

EDIT: Dumb me, SO does not work this way, it appears to be standard Markdown behaviour. However such functionality is being used on github.com.


One way is to use Text_Wiki, enabling the newline rule. I suspect other wiki parsers have this feature, maybe just not enabled by default.

0

精彩评论

暂无评论...
验证码 换一张
取 消