%- site_link = raw(@markdown_linker.create(@site_name, '/')) %>
<%= raw(t 'user_notifications.digest.why',
site_link: site_link,
last_seen_at: @last_seen_at) %>
<%- if @featured_topics.present? %>
### <%=t 'user_notifications.digest.top_topics' %>
<%- @featured_topics.each do |t| %>
<%= raw(@markdown_linker.create(t.title, t.relative_url)) %>
<%- if t.best_post.present? %>
<%= raw(t.best_post.excerpt(1000,
strip_links: true,
text_entities: true,
markdown_images: true)) %>
--------------------------------------------------------------------------------
<%- end %>
<%- end %>
<%- end %>
<%- if @new_topics.present? %>
**<%=t 'user_notifications.digest.other_new_topics' %>**
<%- @new_topics.each do |t| %>
* <%= raw(@markdown_linker.create(t.title, t.relative_url)) %> <%- if t.category %>[<%= t.category.name %>]<%- end %>
<%- end -%>
<%- end -%>
<%= raw(@markdown_linker.references) %>
<%= raw(@markdown_linker.references) %>