librelist archives

« back to archive

embeding html object in markdown

embeding html object in markdown

From:
Xavier Guardiola
Date:
2011-12-08 @ 22:19
Hi all,
I've just started playing with nesta and find it really cool.
My problem is that I need to embed an html object in an article. However if
I simply copy and paste the code into the markdown article it raises an
REXML (cannot parse HMTL/XML) error when displaying the page. My guess is
that I should need to tell markdown to accept html objects (It might not be
allowing for them by default) but do not know how. Is it possible to do it
without modifying nesta gem?
Thanks in advance!

Xavi.

Re: [nesta] embeding html object in markdown

From:
Wynn Netherland
Date:
2011-12-09 @ 02:34
I include HTML fragments in my articles with no issues. Can you share a 
sample of the HTML?

Also, which Markdown engine are you using? I'm using GitHub's Redcarpet in
my app.rb:

    Tilt.prefer Tilt::RedcarpetTemplate

---
Wynn Netherland
web: http://wynn.fm
twitter / skype / facebook: pengwynn
linkedin: http://linkedin.com/in/netherland




On Thursday, December 8, 2011 at 4:19 PM, Xavier Guardiola wrote:

> Hi all,
> I've just started playing with nesta and find it really cool.
> My problem is that I need to embed an html object in an article. However
if I simply copy and paste the code into the markdown article it raises an
REXML (cannot parse HMTL/XML) error when displaying the page. My guess is 
that I should need to tell markdown to accept html objects (It might not 
be allowing for them by default) but do not know how. Is it possible to do
it without modifying nesta gem?
> Thanks in advance!
> 
> Xavi.