Reputation: 14953
I forgotten the name of this library. But it's sort of like Wiki how you type certain characters in front of your text, and then it'll make the text bold/italic/underline.
I'm not asking for the way Wiki is formatted but I'm aware there is something similar built into Rails. It's at the tip of my tongue. Thanks.
Upvotes: 0
Views: 842
Reputation: 3780
Are you looking for the textilize
view helper? In your view, just say:
<%= textilize( post.body_text ) %>
Upvotes: 1
Reputation: 2079
RedCloth does this. It gives you textile markup (which is among the markup languages listed in Daniel's answer).
Upvotes: 0
Reputation: 7925
Many of these are implemented in Ruby:
Comparison of lightweight markup languages
I like Markdown, through RDiscount.
Upvotes: 0