afeld / html_pipeline_rails Goto Github PK
View Code? Open in Web Editor NEWrendering views via HTML::Pipeline in Rails
License: MIT License
rendering views via HTML::Pipeline in Rails
License: MIT License
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?
...slash make it possible to access the page metadata (titles, headers, etc.) from the controllers/views. Example:
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.