Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5956283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:14:05+00:00 2026-05-22T18:14:05+00:00

I am trying to add Markdown to my Rails 3 web app but am

  • 0

I am trying to add Markdown to my Rails 3 web app but am having problems.

I have tried rdiscount and markdownizer but either they’re not working or I’m not writing the correct code for them.

The code I have at the moment to display a text field is <%=h simple_format (@user.desktopinfo) %>

I want to increase the functionality of this text by adding Markdown but I am unable to get it work, please help! 🙂

EDIT 2

Using markdownizer broke my app, so I am now using BlueCloth. Add bluecloth to the gem file and add this <%= raw BlueCloth.new(@user.desktopinfo).to_html %>

🙂

EDIT

Actually, just trying again…

With markdownizer, with markdownize! :desktopinfo in the user model and <%= @user.rendered_desktopinfo %> on the page that shows the text, I get this: <h1>this is a h1</h1> on the text when I enter

this is a h1
============

so I am halfway there! How do I now turn this code into html?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:14:06+00:00Added an answer on May 22, 2026 at 6:14 pm

    You haven’t really specified exactly what you are after, but I use bluecloth when working with markdown. You can add ‘bluecloth’ to your Gemfile.

    To parse your markdown it is as simple as:

    <%= raw BlueCloth.new(YOUR_MARKDOWN).to_html %>
    

    You need the keyword raw. so the HTML is not escaped.

    <%= raw @user.rendered_desktopinfo %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to add a blank sample app for a rails tutorial to GitHub, but
Trying to add django-registration to my app. I have installed setup tools to use
I'm trying add vertical lines to my grid. I have found some examples but
Im new to asp.net mvc. I'm trying add new model class but it got
Trying to add email notification to my app in the cleanest way possible. When
Trying to add a class object into a List using reflection, but when invoking
Trying to add a 'class' html attribute, but I think the keyword 'class' is
Im trying to add a Markdown editor to my site. I've installed MarkdownSharp via
I'm new to ruby on rails. So i think i have association problems. Given
im trying to add a css class in my javascript code but when i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.