Incorrect colouring for Gherkin code after table

Issue #858 new
created an issue

Given this snippet:

Feature: Gherkin Syntax Highlighting
    Syntax highlighting for Gherkin code fragments.

    Background: Setting the scene
        Given we have some Gherkin code
          and it includes a table like this:
              |Parameter | Value|
              |ALPHA     |     1|
              |BETA      |     2|

    Scenario: This appears in the wrong colour.
         When Sphinx renders as HTML
         Then all of this scenario is in the same colour as the table above

When rendered as HTML Then we get the Scenario in the same colour as the table (see attached image).

What's really weird is that if I paste the same code into the demo form at then it works fine.

Comments (7)

  1. Log in to comment