Coder Social home page Coder Social logo

html_pipeline_rails's People

Contributors

afeld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

html_pipeline_rails's Issues

Rendering Markdown as part of a view

Hello Aiden! Your colleague James Dennes recommended your gem (html_pipeline_rails) to render markdown on my personal RoR website. After that I looked it up, and as I understand, you can use your gem to render complete views in Markdown using the Markdown .md extension. However I would like to know how I’d go about rendering part of a view in markdown. Warning, I am fairly new to Ror. Here’s what I’m trying to accomplish: I’m trying to build an admin system which can be used to post articles on my website. So for an article I have a form with a ‚title’ and ‚body’ field. I would like to format my text input in the ,body’ field in Markdown, and when the article is rendered on the website, it will look like the ‚Github Style’ Markdown. Is there a way to accomplish this using your gem?

HTML Escaping Issue

Whenever my app/views/shared/_test.html.md is rendered the output is HTML escaped. Which causes all of the output from the markdown to be displayed as HTML tags instead of being rendered.

Source

panel "Test" do
  render "shared/test"
end

Output

markdown_escaped

Should the string's output be marked #html_safe in the handler? Has anyone else seen a similar issue?

I'm using Rails 4.1.1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.