Add : + continuation marker for multiple dd elements
#49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds explicit syntax for creating multiple
<dd>elements for the same term in definition lists while maintaining djot spec compliance.Demo: https://sandbox.dereuromark.de/sandbox/djot?d=OiBEam90CiAoL2TKksmRdC8pCiAgQSBsaWdodHdlaWdodCBtYXJrdXAgbGFuZ3VhZ2UgZGVzaWduZWQgYnkgSm9obiBNYWNGYXJsYW5lLAogIGNyZWF0b3Igb2YgUGFuZG9jIGFuZCBDb21tb25NYXJrLgo6ICsKICBFbmhhbmNlZCBieSBNYXJrIFNjaGVyZXIgYW5kIERqb3QgUEhQIGltcGxlbWVudGF0aW9uIHRvIHN1cHBvcnQgbW9yZSBhd2Vzb21lbmVzcy4KCjogTWFya2Rvd24KOiBDb21tb25NYXJrCjogR0ZNCgogIEVhcmxpZXIgbWFya3VwIGxhbmd1YWdlcyB0aGF0IGluc3BpcmVkIERqb3QncyBkZXNpZ24sCiAgYnV0IHdpdGggbGVzcyBjb25zaXN0ZW50IHBhcnNpbmcgcnVsZXMuCgogIFRoZXkgY2FuIGJlIHVwIHRvIHR3byB0aW1lcyBzbG93ZXIu
The Problem
HTML definition lists support multiple
<dd>elements per term (for multiple distinct definitions), but the djot spec uses blank lines for paragraph separation within a single<dd>. There was no way to create multiple<dd>elements.The Solution
<dd>: +marker explicitly creates additional<dd>elementsExample
Produces:
Roundtrip Support
: +markers for multiple<dd>elementsRefs jgm/djot#128