Add capability for multi-line items
See original GitHub issueSometimes you want an item to be a block of text. Using a special character like \n
doesn’t follow Margin’s rules of plain text readability.
Maybe something like a pipe |
character that enforces strict text blocks:
Favorite Quotes
| Be thankful for what you have; you’ll end up having more.
| If you concentrate on what you don’t have, you will never, ever have enough.
|
| - Oprah Winfrey
| You can discover more about a person in an hour of play than in a year of conversation.
|
| - Plato
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:14 (8 by maintainers)
Top Results From Across the Web
What are multiline items in Salesforce?
Salesforce runs user-defined validation rules if multiline items were created, such as quote line items and opportunity line items.
Read more >Can I set some variables in multiple line text field? - ServiceNow
Please refer the 2nd example in groovy section in below KB and you can add multi line text accordingly. Please refer this KB...
Read more >WPF Datagrid -- editable combobox with multi-line capability?
Try This below will allow you to add multiline input in textbox inside a combobox. Add the style to the Resources.
Read more >Multiline text field with attach images
In that we have a capability to add images within the multi line text. ... functionality to attach multiple images to a SP...
Read more >Apply Multi-Line Changes in QuoteWerks - YouTube
Making edits in your quotes has never been easier or more efficient. This video demonstrates how you can select multiple lines and change ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I disagree with this for two reasons:
First, for the human, I would very much like to be able to make simple lists like…
… without being required to leave extra empty lines or delimiters between things to indicate they are separate items.
Second, from the point of view of trying to balance this being simple for both humans and computers, I would argue that the spec should instead be strict, that an item exists as one line only, terminated by a
\n
. Nearly every program that displays text can (and does) word wrap, and many allow you to define a custom word wrapping. I don’t think the added complexity and ambiguity is worth the benefit of supporting manual line breaks without splitting items.After exploring this some more, I think that I agree.
I think it would be reasonable for an application that is concerned with long-form content to find their own way to join multiple items post-Margin.
JSON arrays seem to preserve ordering, too, so an array of children would be reproducible over and over again in different applications. 💯