require_relative 'helpers/indented_grid' Coprl::Presenters.define(:markdown) do helpers Demo::Helpers::IndentedGrid attach :top_nav indented_grid do heading 'Markdown' body 'Markdown on all text elements is supported.', 'It uses [redcarpet](https://github.com/vmg/redcarpet) with the Safe render.' title 'Line breaks' body 'Passing multiple text strings', 'creates line breaks' body ['Arrays of text strings is the same', 'it creates line breaks'] body "You can also do line breaks with two line feeds\n\nThis is on another line" body "You can also do line breaks with two carriage returns\r\rThis is on another line" body 'Line two carriage returns in a single string does the same thing This is on another line' body "Line two carriage returns in a double quoted string does the same thing\n\n\tThis is also another line" body "A single line feed does not add a line\nThis is on the same line." body "A single carriage return does not add a line\rThis is on the same line." body "A carriage return followed by a line feed.\r\nDoes not break up the line." title 'Escaping HTML' body '