X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=b.rb;h=391a0ed5e97430f34223d5432d177d951bfae929;hp=2dc8ad8ad7d9287dda1106a67b66544642663cd0;hb=d0aafa5d6370307bdf0abe470be16f6a15f15162;hpb=f32a9440b9055001ef3749999eaf3b4d7974932c diff --git a/b.rb b/b.rb index 2dc8ad8..391a0ed 100644 --- a/b.rb +++ b/b.rb @@ -125,15 +125,14 @@ EOF end def comment_html(comment, date) - inner = Redcarpet::Markdown.new(Redcarpet::Render::Safe, fenced_code_blocks: true).render(<#{Time.at(date).strftime("%b %-d '%y")} -EOF # I tried putting the time, %I:%M %p UTC, but it looks kinda # clunky, going against my simple theme. + user_input = Redcarpet::Markdown.new(Redcarpet::Render::Safe, + fenced_code_blocks: true).render(comment) < - #{inner} + #{user_input} +

#{Time.at(date).strftime("%b %-d '%y")}

EOF end @@ -221,8 +220,8 @@ EOF comment_html("Note: there #{text} pending approval.", NOW) end com_section = <<-EOF -
- + +