2016-09-14 233 views

回答

2

您可以使用|,打破了長隊分成多個部分: -

post: 
    description: | 
     Creates a new account. Some **bold** text here. More text. Need to fill the line, so make it longer still. Hooray! 
     Line two Starts here 

參考: - https://github.com/raml2html/raml2html/blob/master/examples/example.raml

另一種選擇是使用!\n打破行: -

post: 
     description: ! 
      "Creates a new account. Some **bold** text here. More text. Need to fill the line, so make it longer still. Hooray!\n 
      Line two Starts here"  

請注意這裏的描述應該在""雙引號

+0

謝謝Anirban,但我正在談論一個模式中的其中一個fiels的描述。 – fificito

+0

在你的問題中,你明確提到:「**我在RAML中有一個字段,需要很長的描述**」 –

+0

是的,對不起,我的壞。我對此很新,所以我提出的問題可能不明確。 – fificito