2
我在RAML中有一个字段,需要很长的描述。有没有办法将它分解成多行?如何在RAML中的描述文件中创建换行符?
例子:
“说明”: “这是一个很长的字符串”
我想它的渲染:
“说明”:“这是
很长串。”
感谢
我在RAML中有一个字段,需要很长的描述。有没有办法将它分解成多行?如何在RAML中的描述文件中创建换行符?
例子:
“说明”: “这是一个很长的字符串”
我想它的渲染:
“说明”:“这是
很长串。”
感谢
您可以使用|
,打破了长队分成多个部分: -
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"
请注意这里的描述应该在""
双引号
谢谢Anirban,但我正在谈论一个模式中的其中一个fiels的描述。 – fificito
在你的问题中,你明确提到:“**我在RAML中有一个字段,需要很长的描述**” –
是的,对不起,我的坏。我对此很新,所以我提出的问题可能不明确。 – fificito