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:
parent
ab9d87fbc8
commit
d1054063cf
4 changed files with 12 additions and 8 deletions
2
org/testdata/inline.pretty_org
vendored
2
org/testdata/inline.pretty_org
vendored
|
@ -17,7 +17,7 @@
|
|||
is
|
||||
not emphasized/
|
||||
- empty emphasis markers like ++ // __ and so on are ignored
|
||||
- subscript_{sub} and superscript^{super}
|
||||
- use _{} for subscript_{sub} and ^{} for superscript^{super}
|
||||
- links
|
||||
1. regular link [[https://example.com]] link without description
|
||||
2. regular link [[https://example.com][example.com]] link with description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue