Skip to main content

Markdown Help for Deployment Step Descriptions

Some tips to help with common Markdown content formatting options.

Sam Wilson avatar
Written by Sam Wilson
Updated yesterday

When writing the description of a deployment step in Gearset Pipelines, you can format the content using Markdown.

Markdown is a commonly used syntax for formatting text, allowing you to add headers, lists, sections, or embed more "rich" content like links and blocks of code.

You can also preview the description, which is useful where you've added some markdown and wish to see how it will be formatted once the step has been created.

If you're unfamiliar with it, here's a "cheat sheet" with some commonly used syntax as well as some useful keyboard shortcuts.

Headers

Headers are inserted by adding a number of # characters before the header text. You can add between 1 and 6.

  • i.e. # Header 1 will format the text as an h1

To create an h1, h2, or h3, you can also use the keyboard shortcut ctrl/cmd + [1, 2, 3], where the number is the desired size.

Text formatting

Bold and Italics

Text can be made bold by adding ** before and after the text, or italicised by adding a _ before and after it.

  • i.e. **bold**, _italics_

Adding bold text can be done with the keyboard shortcut ctrl/cmd + b, and italics with ctrl/cmd + i

Strike-through

You can also add a strike through text, by adding ~~ before and after it

  • i.e. ~~strike through~~

Adding strike through text can be done with the keyboard shortcut ctrl/cmd + shift + s

Code

To format a line of code, wrap it with backticks

  • i.e. `code`

Adding code inline can be done with the keyboard shortcut ctrl/cmd + e

If you need to add a multi-line block of code, wrap the block with three backticks (```), you can also specify the language of the code next to the opening backticks and it will have syntax highlighting.

  • i.e.

    ```json
    {
    "firstName": "Joe",
    "lastName": "Bloggs"
    }
    ```

You can also use a code block to embed a Mermaid diagram or graph within your Markdown. This is accessible through setting the language to mermaid, similar to the json example above:

```mermaid
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
```

See Mermaid's documentation for help on creating your own diagrams and graphs.

Links

Links can be embedded in your description using the following syntax [Link text](url), replacing the Link text and url appropriately

  • i.e. [Gearset docs](https://docs.gearset.com/)

Adding a link can be done with the keyboard shortcut ctrl/cmd + shift + u

Alternatively, you can just paste a URL into your description without the syntax around it, and it will be embedded as a link.

Lists

Bulleted lists are created by adding a - in front of each list item, for sub-bullets, you add an indent to each bullet under the main point

  • i.e.

    - Bulleted list item 1
    - Bulleted list item 2
    - It also supports adding sub-bullets

You can also add numbered lists by adding the order of the point before it

  • i.e.

    1. Numbered list item 1
    2. Numbered list item 2

Tables

Tables can be embedded using Markdown's table syntax - with | chars to separate columns and 3 or more hyphens (---) to create a header

i.e

  • | Header 1 | Header 2 |
    | -------- | -------- |
    | Value 1 | Value 2 |

Files

Files can be embedded into your description, with some limitations. To embed a file, you can either copy & paste, drag & drop, or attach the file through the toolbar to the description. The file will then be uploaded onto Gearset, and will only be accessible to those that are able to view the Pipeline.

Images will be rendered within the description, and can be clicked to be viewed in their original size. Videos will be previewed within the description. Any other file will be available for download by clicking the generated link after the upload has successfully completed.

  • Supported File Types:

    • Image: PNG, GIF, JPG, SVG, WEBP

    • Video: MP4, MOV, WEBM

    • Text and Data: TXT, CSV, MD, JSON, PDF, XML, DOC, DOCX, XLS, XLSX, PPT, PPTX, ODT, FODT, ODS, FODS, ODP, FODP, ODG, FODG, ODF

    • Archive formats: ZIP, GZ

  • Maximum file size: 10MB

Did this answer your question?