2016-09-14 192 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