% @chapter = chapter if defined?(chapter) %>
<%= t(".chapter_byline_html", byline_names_link: byline(@chapter, only_path: false)) %>
<%= t(".chapter_summary") %>
<%= raw sanitize_field(@chapter, :summary) %>
<%= t(".chapter_notes") %>
<%= raw sanitize_field(@chapter, :notes) %>
<%= t(".section_chapter_end_notes") %>
<%= raw sanitize_field(@chapter, :endnotes) %>