I generally use Markdown for my blog entries. To test out a blog
system (using Webby's website and not blog setup), I'm calling the
following from inside index.txt:
************************
This is a Markdown test.
This section (before the erb code) will generate properly spaced html.
(One empty line in between paragraphs or other DOM elements.)
The following section generates paragraphs spread out by three or four
empty lines:
<% pages = @pages.find( :limit => 10, :in_directory =>
'posts', :sort_by => 'created_at', :reverse => true) %>
<% pages.each do |page| %>
<%= page.title %>
==================
<%= render(page) %>
<% end %>
*****************************
The text inside each page is standard Markdown and should only be
generating one empty line between paragraph elements. But it generates
three to four empty lines, leading to mess source code.
Since RDiscount renders the Markdown correctly outside of the block,
I'm thinking the spacing issue is specific to Webby. If that's
correct, is there any way you guys could fix this?
Regards,
David
To unsubscribe from this group, send email to webby-forum+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
While we're talking about page rendering, what's the easiest way to include SmartyPants-style character escaping? Ie, --- turns into an em-dash and & turns into &? Should I patch my RDiscount code myself, integrate another Ruby gem, another solution?
David