Skip to content

Commit 7fcad36

Browse files
committed
toplevel/rss: include images, tweak heading sz
1 parent a5f6811 commit 7fcad36

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/clayoven/toplevel.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,14 @@ def self.generate_rss(content_pages, lastmod)
363363
item.description =
364364
p
365365
.paragraphs
366-
.reject { |p|
367-
%i[mathjax images exercise horizrule].include? p.type
368-
}
366+
.reject { |p| %i[mathjax exercise horizrule].include? p.type }
369367
.map { |p|
370368
if p.type == :codeblock
371369
"<pre>" + p + "</pre>"
372370
elsif p.type == :subheading
373-
"<h2>" + p + "</h2>"
371+
"<h3>" + p + "</h3>"
372+
elsif p.type == :images
373+
p.each_line.map { |l| "<img src=\"#{l}\" />" }
374374
else
375375
"<p>" + p + "</p>"
376376
end

0 commit comments

Comments
 (0)