在此降价代码中
## This a very long line header which was written in markdown
我希望将长行分成2行但保持标题的样式。
这是错误的意图:
## This a very long line header which
was written in markdown
结果:
这是一个非常长的行标题
写在markdown
使用2次##的策略不起作用
结果(不必要的断线):
答案 0 :(得分:2)
有一个pandoc issue正好要求你,所以目前很遗憾不可能。
您可以使用反斜杠转义换行符,但是,这会在那里插入<br>
标记。
# This a very long line header which \
was written in markdown
如果您只定位HTML输出,您还可以在markdown中编写原始HTML:
<h1>This a very long line header which
was written in markdown</h1>