Its always good to learn from how others standards approach this problem of text markup. Here is one project named Texy! I only highlighted a few that I noticed as interesting. But you may find others interesting in the source link below:
- Source: https://texy.info/en/syntax
Interesting way to deal with line breaks without newline or \
Lorem ipsum dolor sit amet,
still the same paragraph, but wrapped with element `<br>`
using one space before
<p>Lorem ipsum dolor sit amet,<br>
still the same paragraph, but wrapped with element <code><br></code><br>
one space before</p>
Containers
/---div .[header]
## This is a header.
/---div
nested div
\---
Texy is sexy!
\---
<div class="header">
<h6>This is a header.</h6>
<div>
<p>nested div</p>
</div>
<p>Texy is sexy!</p>
</div>
Acronym and abbrs handling
jednoslovnc: NATO((North Atlantic Treaty Organisation))
vĂceslovnc: "et al."((a dalšĂ))
jednoslovnc: <acronym title="North Atlantic Treaty Organisation">NATO</acronym>
vĂceslovnc: <acronym title="a dalšĂ">et al.</abbr>
Arrows
- arrows
<-
and->
and<->
Modifiers
We already do this in pandoc with the ![](){}
syntax but always intersting to see how others do it. In this case they use .{}
to say that a line or the line below should use these settings.
Another example .{color:blue; lang: cs}
<p style="color:blue" lang="cs">Another example</p>