#### dudido

02 Mar, 2020 09:32 PM

Hi,

how do I create a linebreak within metadata? I generate MMD via Scrivener, and had a discussion about it with their support here:
https://www.literatureandlatte.com/forum/viewtopic.php?f=2&t=60772

The MMD6 Documentation claims the following:

You can have more than one line in this field --- use two extra spaces at the end of the line, and a newline character will be used in LaTeX.
(Taken from https://github.com/fletcher/MultiMarkdown/wiki/MultiMarkdown-Syntax-Guide#affiliation)

If I a file with a tag Affiliation and set it to:

test1
test2
test3

this yields the following results -
\def\affiliaton{test1 test2 test3}

If I understand the MMD6 manual correctly the outcome should be
\def\affiliaton{test1\\test2\\test3}

So what would be the correct way, please?

1. Support Staff Posted by fletcher on 03 Mar, 2020 02:23 AM

The documentation you linked to was MultiMarkdown version 2 and is obsolete (though I was interested to see that others are still editing it... ;)

MultiMarkdown-6 documentation is here

If you want to force a line break in metadata, use an escaped newline.

2. fletcher closed this discussion on 03 Mar, 2020 02:23 AM.

3. dudido re-opened this discussion on 03 Mar, 2020 06:14 PM

4. Posted by dudido on 03 Mar, 2020 06:14 PM

I can confirm that the line breaks now work as expected.

That site showed up as a top hit on search engines and had a current editing date (18 Mar 2019) but no direct reference (at least within that subsection) on the version documented. It may be useful to insert a notice permanently visible that this content is outdated as others may end up having similar misunderstandings,

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 30 May, 2020 05:22 PM Rotate Images via Image Attributes 03 Mar, 2020 06:14 PM Linebreak in Metadata 20 Dec, 2019 11:26 PM Sentence starting with apostrophe. 25 Oct, 2019 08:22 PM How to extend MMD to automatically add a wrapper for tables? 30 Aug, 2019 03:59 PM "You have logged x hours"