We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5f6811 commit 7fcad36Copy full SHA for 7fcad36
1 file changed
lib/clayoven/toplevel.rb
@@ -363,14 +363,14 @@ def self.generate_rss(content_pages, lastmod)
363
item.description =
364
p
365
.paragraphs
366
- .reject { |p|
367
- %i[mathjax images exercise horizrule].include? p.type
368
- }
+ .reject { |p| %i[mathjax exercise horizrule].include? p.type }
369
.map { |p|
370
if p.type == :codeblock
371
"<pre>" + p + "</pre>"
372
elsif p.type == :subheading
373
- "<h2>" + p + "</h2>"
+ "<h3>" + p + "</h3>"
+ elsif p.type == :images
+ p.each_line.map { |l| "<img src=\"#{l}\" />" }
374
else
375
"<p>" + p + "</p>"
376
end
0 commit comments