Sha256: 3728b8cf4a3effab595d5fa9c320f6af70548533551b995dc9ea718866abb8a6

Contents?: true

Size: 902 Bytes

Versions: 6

Compression:

Stored size: 902 Bytes

Contents

Feature: Code blocks in markdown get highlighted

  Scenario: Works with Kramdown
    Given a fixture app "test-app"
    And a file named "config.rb" with:
      """
      set :markdown_engine, :kramdown
      activate :syntax
      """
    Given the Server is running at "test-app"
    When I go to "/code.html"
    Then I should see '<span class="k">def</span>'
    Then I should see '<pre class="highlight plaintext"><code>This is some code'

  @nojava
  Scenario: Works with RedCarpet
    Given a fixture app "test-app"
    And a file named "config.rb" with:
      """
      set :markdown_engine, :redcarpet
      set :markdown, :fenced_code_blocks => true
      activate :syntax
      """
    Given the Server is running at "test-app"
    When I go to "/code.html"
    Then I should see '<span class="k">def</span>'
    Then I should see '<pre class="highlight plaintext"><code>This is some code'

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
middleman-syntax-3.4.0 features/markdown.feature
middleman-syntax-3.3.0 features/markdown.feature
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-syntax-3.0.0/features/markdown.feature
middleman-syntax-3.2.0 features/markdown.feature
middleman-syntax-3.0.0 features/markdown.feature
middleman-syntax-2.1.0 features/markdown.feature