0
我知道strip_newlines但它不這樣做我想要的東西:如何去除jekyll中的換行符?
{% capture string %}
Hello
there
{% endcapture %}
{{ string | strip_newlines }}
輸出Hellothere
,但我需要Hello there
INSEAD。
替換不能工作,因爲你不能把換行字符。
{{ string | replace: '\n', ' ' }}
如何用空格替換所有換行符?例如用於元標記中。