Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 Ruby 应用程序,它目前使用redcarpet来呈现 Markdown。
我需要从文本中去除 Markdown 标记。有什么简单的方法吗?
是的,可以使用Redcarpet::Render::StripDownClass -> http://www.rubydoc.info/github/vmg/redcarpet/Redcarpet/Render/StripDown
Redcarpet::Render::StripDown
它说“将 Markdown 转换为纯文本”