Preserve line breaks in title using pandoc

后端 未结 3 944
情话喂你
情话喂你 2021-01-04 04:18

Consider the following title block in pandoc-flavored Markdown:

% Higgelty Pigglety Pop!
  or
  There Must Be More to Life
% Maurice Sendak

3条回答
  •  长发绾君心
    2021-01-04 04:55

    % Higgelty Pigglety Pop! \
      or \
      There Must Be More to Life
    % Maurice Sendak
    

    Pandoc Markdown enables the escaped_line_breaks extension by default:

    A backslash followed by a newline is also a hard line break. Note: in multiline and grid table cells, this is the only way to create a hard line break, since trailing spaces in the cells are ignored.

提交回复
热议问题