diff --git a/app/views/digests/markdown.html.haml b/app/views/digests/markdown.html.haml
index 3dc2c8df71df212557e33eca144307474b6a2017..b83c56ef9b9d62a83d6eac0bb4a4b17a6d89ca7f 100644
--- a/app/views/digests/markdown.html.haml
+++ b/app/views/digests/markdown.html.haml
@@ -16,7 +16,8 @@
   - @events.sort_by(&:start_time).each do |event|
     - @event = event
     \## [#{event.city}] [#{event.title}](#{event_url event}) - #{display_date}
-    - strip_tags(@event.description).split(/\r\n/).reject { |p| p.blank? }[0..2].each do |p|
+    - lines = strip_tags(@event.description).split(/\r\n/).reject(&:blank?)
+    - lines[0..2].each do |p|
       = p
     \
     * #{[@event.place_name, event.full_address].compact.join ', '}
@@ -42,7 +43,7 @@
   * [Annuaire des organisations](http://www.agendadulibre.org/orgas)
   * [Agenda pour la semaine précédante]
     (#{digest_url :markdown, future: false, period: {
-      year: @week.year, week: (@week - 1.week).cweek }})
+    year: @week.year, week: (@week - 1.week).cweek }})
 
 %hr
 
@@ -59,7 +60,7 @@
 
   .field.title
     %label(for='title') Titre
-    %input#title(type='text' name='news[title]' value=title)
+    %input#title{ type: 'text', name: 'news[title]', value: title }
 
   .field.authenticity_token
     %label(for='token') Jeton
@@ -86,8 +87,9 @@
 
     %input(type='hidden' name='news[links_attributes][2][title]'
       value='Carte des événements')
-    %input(type='hidden' name='news[links_attributes][2][url]'
-      value="#{maps_url future: false, period: { year: @week.year, week: @week.cweek }}")
+    %input{ type: 'hidden', name: 'news[links_attributes][2][url]',
+      value: maps_url(future: false,
+      period: { year: @week.year, week: @week.cweek }) }
     %input(type='hidden' name='news[links_attributes][2][lang]'
       value='fr')
 
@@ -107,8 +109,9 @@
 
     %input(type='hidden' name='news[links_attributes][5][title]'
       value='Agenda de la semaine précédante')
-    %input(type='hidden' name='news[links_attributes][5][url]'
-      value="https://linuxfr.org/news/agenda-pour-la-semaine-#{(@week - 1.week).cweek}-de-l-annee-#{(@week - 1.week).year}")
+    - pre = 'https://linuxfr.org/news/agenda-pour-la-semaine-'
+    - pre += "#{(@week - 1.week).cweek}-de-l-annee-#{(@week - 1.week).year}"
+    %input{ type: 'hidden', name: 'news[links_attributes][5][url]', value: pre }
     %input(type='hidden' name='news[links_attributes][5][lang]'
       value='fr' size='2')