I am trying to implement a content formatting feature in my website - that is, I want to let my users type for example [b]bold[/b] or (like SO) * * bold * * and end up with bold. I also want support for headers, links, images etc.
我正在尝试在我的网站中实现内容格式化功能 - 也就是说,我想让我的用户输入例如[b]粗体[/ b]或(如SO)* * bold * *并以粗体结尾。我还想要支持标题,链接,图像等。
The more I'm working on this, the more I feel like I'm reinventing the wheel. If possible, I would like to find an OpenSource library that I could use, or at least "borrow" from. So my question is:
What content formatting library do you recommend? Why?
我正在做的越多,我就越觉得我正在重新发明*。如果可能的话,我想找一个我可以使用的OpenSource库,或者至少“借用”。所以我的问题是:你推荐什么内容格式库?为什么?
1 个解决方案
#1
Stack Overflow uses Markdown, for which there are many open source formatting libraries available.
Stack Overflow使用Markdown,有许多开源格式库可用。
#1
Stack Overflow uses Markdown, for which there are many open source formatting libraries available.
Stack Overflow使用Markdown,有许多开源格式库可用。