Apparently, you can create multiline text replacements on macOS:
It’s possible to use multiline text replacements on Mac, iPhone, and iPad, though you would need to use a Mac to create these text replacements.
On the Mac:
- Open System Preferences. Click on the “Keyboard” pane then click on the “Text” tab.
- Click the “+” button to add a new text replacement.
- Enter the shortcut text in the Replace column.
- Paste some multi-line/multi-paragraph text into the With column.
This text replacement syncs across all of your device using iCloud.