mbakeranalecta / sam

Semantic Authoring Markdown
Other
79 stars 8 forks source link

nesting decorations #136

Closed mbakeranalecta closed 7 years ago

mbakeranalecta commented 7 years ago

The language spec says:

            Decorations cannot be nested, so

            ```(sam)
                This text is *_important_*.

            is not a shortcut for

            ```(sam)
                This text is {important}(bold)(italic)

            but would be interpreted as

            ```(sam)
                This text is {_important_}(bold).

But is there any reason for this restriction now that we have annotation chaining?

The two possible combinations would probably have to be detected separately from bold and italic, but that is easy enough to do.

Combining with code would not be possible, but who is likely to want to do that anyway?

mbakeranalecta commented 7 years ago

On reflection, this seems a rare enough case not to be worth bothering with. Besides, decorations are just escape valves for when you don't have appropriate subject domain tagging, and there are no standard conventional uses for bold italic. So no.