Anchor inline regexps and improve sub/super-script

The regexps are meant to extract a match immediately following the cursor - the
anchor should have been there from the beginning...

Also empty sub/superscript doesn't make sense - nested sub/superscript does
make sense but yagni.
This commit is contained in:
Niklas Fasching 2018-12-20 15:32:58 +01:00
parent ab9d87fbc8
commit d1054063cf
4 changed files with 12 additions and 8 deletions

View file

@ -61,7 +61,7 @@ empty emphasis markers like ++ // __ and so on are ignored
</li>
<li>
<p>
subscript<sub>sub</sub> and superscript<sup>super</sup>
use _{} for subscript<sub>sub</sub> and ^{} for superscript<sup>super</sup>
</p>
</li>
<li>