Sha256: c62d5b44bc69f4dc99f80435ffa271e856a3e9cb6ed5b1ea4ba056bf958bd701
Contents?: true
Size: 1.29 KB
Versions: 45
Compression:
Stored size: 1.29 KB
Contents
Feature: Markdown support in Slim (Kramdown) In order to test support of the Slim markdown filter Scenario: Markdown filter in Slim works (with Kramdown) Given a fixture app "markdown-in-slim-app" And a file named "config.rb" with: """ set :markdown_engine, :kramdown activate :directory_indexes """ And a file named "source/markdown_filter.html.slim" with: """ markdown: # H1 paragraph """ Given the Server is running at "markdown-in-slim-app" When I go to "/markdown_filter/" Then I should see ">H1</h1>" Then I should see "<p>paragraph</p>" Scenario: Markdown filter in Slim uses our link_to and image_tag helpers (with Kramdown) Given a fixture app "markdown-in-slim-app" And a file named "config.rb" with: """ set :markdown_engine, :kramdown activate :directory_indexes """ And a file named "source/link_and_image.html.slim" with: """ markdown: [A link](/link_target.html) ![image](blank.gif){: srcset="image_2x.jpg 2x"} """ Given the Server is running at "markdown-in-slim-app" When I go to "/link_and_image/" Then I should see "/link_target/" Then I should see "/images/image_2x.jpg 2x" Then I should see 'src="/images/blank.gif"'
Version data entries
45 entries across 45 versions & 3 rubygems