siavashs / Prism

Prism is a {code} macro plugin for Atlassian Jira
https://marketplace.atlassian.com/plugins/com.catawiki.jira.prism
BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

Code block in "gherkin" language is not working as expected. #57

Open vishalmande opened 3 years ago

vishalmande commented 3 years ago

Describe the bug Code block in "gherkin" language is not working as expected.

To Reproduce Steps to reproduce the behavior:

  1. Go to any Jira ticket add below code block to comment or description { Feature: CLI access through AUX USB port Background: Given a USB type A cable connected between the AUX port of the card and the USB port of a PC When console software (putty, picocom /dev/ttyUSB0 -b 155200) is launched on the PC and set up to access the USB port Scenario: Successful connexion through USB Then The invite text is displayed on the console Scenario: Successful login through USB When entering login and password in the console Then the CLI menu is displayed on the console Scenario: replace USB cable with sensor after reboot When removing USB cable And rebooting the card And inserting a sensor cable Then the sensor works }

  2. save the comment or description

  3. Getting below error : "Unable to find source-code formatter for language: gherkin. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml"

Expected behavior It should highlight the syntax.

Screenshots gherkin

Desktop (please complete the following information):

Additional context Could you please help here, Note- "{code} formatting macro " module is enabled for the plugin.

siavashs commented 2 years ago

@vishalmande the gherkin is not supported yet but will be added in future releases.

vishalmande commented 2 years ago

@siavashs Thanks for the update.

chauhanhitendra commented 2 years ago

Do we have any plan to enable gherkin language ?

chauhanhitendra commented 2 years ago

@siavashs : The URL https://prismjs.com/#languages-list mentions that prism plugin supports gherkin, but you are saying that it doesn't support gherkin.
I am little bit confused now.