slate icon indicating copy to clipboard operation
slate copied to clipboard

Slip in markdown

Open zeyneptokerr opened this issue 4 years ago • 4 comments

First I write the python, golang, javascript codes in the right pane, then I write the explanations below. I'm told to do it this way in Markdown Syntax as well, but it still slips. Since I wrote the latest javascript code, there is no slippage in the javascript code. If I write the description under which programming language, there is no slippage in the description of that programming language. Where am I doing wrong?

Code:

# Auth Service

## Register

```shell
curl --location --request POST 'http://0.0.0.0:52000/Register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Firstname": "Zeynep",
    "Surname": "vgdf",
    "Phone": "+5435t",
    "Mail": "[email protected]",
    "Password": "fesvsdvfdg"
}
```
```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "http://0.0.0.0:52000/Register"
  method := "POST"

  payload := strings.NewReader(`{
    "Firstname": "Zeynep",
    "Surname": "vgdf",
    "Phone": "+5435t",
    "Mail": "[email protected]",
    "Password": "fesvsdvfdg"
}

`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
```python
import requests
import json

url = "http://0.0.0.0:52000/Register"

payload = json.dumps({
  "Firstname": "Zeynep",
  "Surname": "vgdf",
  "Phone": "+5435t",
  "Mail": "[email protected]",
  "Password": "fesvsdvfdg"
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
```
```javascript
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "Firstname": "Zeynep",
  "Surname": "vgdf",
  "Phone": "+5435t",
  "Mail": "[email protected]",
  "Password": "fesvsdvfdg"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("http://0.0.0.0:52000/Register", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

### Request Information

|Category|Value|
|--------|-----|
|Http Request|POST|
|URL|http://0.0.0.0:52000/Register|

### Input Shema for Request

|Category|Value|
|--------|-----|
|"Firstname":|"Zeynep"|
|"Surname":|"vgdf"|
|"Phone":|"+5435t"|
|"Mail":|"[email protected]"|
|"Password":|"fesvsdvfdg"|
Ekran Resmi 2021-11-09 15 40 35 Ekran Resmi 2021-11-09 15 40 50 Ekran Resmi 2021-11-09 15 42 10
  • OS: [iOS]
  • Browser [chrome]
  • Version [93.0.4577.63 ]

zeyneptokerr avatar Nov 09 '21 12:11 zeyneptokerr

What version of slate are you using? Is this a fresh installation, or are you upgrading from an older version of slate?

Your issue looks similar to the one fixed in https://github.com/slatedocs/slate/commit/aace071f89993ccbaf3809273bdeaf199c0ebf90 where on moving to rouge 3.x, content was getting weirdly pushed down, and so needed to edit the stylesheet to add a new clear:none for the center column.

MasterOdin avatar Nov 09 '21 19:11 MasterOdin

Slate'in hangi sürümünü kullanıyorsunuz? Bu yeni bir kurulum mu yoksa eski bir slate sürümünden mi yükseltme yapıyorsunuz?

Sorununuz aace071'de düzeltilen soruna benziyor, burada rouge 3.x'e geçerken , içerik garip bir şekilde aşağı itiliyordu ve bu nedenle clear:nonemerkez sütun için yeni bir tane eklemek üzere stil sayfasını düzenlemeniz gerekiyordu .

I am developing on the latest master from branches. Where can I see the version I am using? Ekran Resmi 2021-11-10 10 22 20

zeyneptokerr avatar Nov 10 '21 07:11 zeyneptokerr

Could you paste the contents of your gemfile?

Alternately, are you able to provide a link to the repo that has your code?

MasterOdin avatar Nov 10 '21 20:11 MasterOdin

Relates to #1177

dextertd avatar May 16 '22 16:05 dextertd