anchor.diff:  <% @@MAX_LINES = 10000 %>
   <%= javascript_include_tag "pdfjs-dist/build/pdf.min.js" %>
   <%= javascript_include_tag "pdfjs-dist/web/pdf_viewer.js" %>
  +<% def render_textarea(str)
  +      # Within textareas, the initial newline is ignored
  +      # so to handle files that start with blank lines, ensure we add
  +      # a newline in a uniform manner
  +     "\n".html_safe + render(html: str)
  +   end %>
   <style>
   .embed-replaced { vertical-align: baseline; display: inline-block; }
   .embed-image { }
  
positive.code:           <p>Could not render <%= f[:name] %> &mdash; content was too long</p>
            <p><%= link_to "Download #{f[:name]}", f[:link] %></p>
            <textarea style="display: none;" data-source="<%= f[:link] %>"
                      id="contents_<%= i %>_<%= root %>"><%= render html: f[:contents] %></textarea>
          </div>
        </div>
        <% else %>
        <div>
          <textarea class="sourceCode" data-lang="markdown"
                    data-source="<%= f[:link] %>"
                    id="contents_<%= i %>_<%= root %>"><%= render html: f[:contents] %></textarea>
        </div>
        <% end %>
      </div>
  
negative.code:   </div>
    <% elsif (f[:type] == "application/xml") || (f[:type] == "text/html") %>
    <% begin
       contents = render_textarea f[:contents]
       type = if (f[:name].ends_with? ".svg") then "SVG"
              elsif (f[:name].ends_with? ".html") then "HTML"
              else "XML" end %>
  