Skip to content

Slate template broken #338

Closed
Closed
@terry90

Description

@terry90

Hey,

I just ran into an issue with the current Slate version.
The template for Slate generates some blocks like this:

### Request

#### Endpoint
```
GET /v1/app_configs
Authorization: Token token=qyKRKqDwtFs7QgUNjNgo
Accept: application/json
```

or

### Response

```
Content-Type: application/json; charset=utf-8
200 OK
```

The problem is, no lang is specified for these blocks, Slate tries to interpret them but throws this:

NoMethodError at /
undefined method `split' for nil:NilClass

Ruby	/home/xxx/xx/lib/multilang.rb: in block_code, line 3
Web	GET localhost/

When I edit my Markdown file and replace ``` by ```plaintext it stops crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions