Commit Graph

17 Commits (3cbd386cf4c51b07450c718e445d27f15d067f1e)

Author SHA1 Message Date
Manuel Genovés 68bcc1206b fix top/bottom rules 2020-01-25 01:41:36 +01:00
Manuel Genovés 41378d55e1 Fixes #154
Fix regex for horizontal rules
(yaml metadata delimiters should not be counted as rules)
2020-01-24 19:12:20 +01:00
Thomas Lavend'Homme 2abb2af472
Impove regex for emphasis 2019-12-22 10:06:35 -05:00
Thomas Lavend'Homme 6edf041169
Impove text rendering in bullets 2019-12-15 12:14:08 -05:00
Gonçalo Silva ec2f33e248 Add 'url' regexp group to LINK_ALT
Enables inline preview.
2019-07-25 23:57:27 +01:00
Gonçalo Silva 05cdfe0599 Use CommonMark's regexp for autolink / autoemail
Ref: https://github.com/commonmark/commonmark.js/blob/master/lib/inlines.js#L62-L64

Also avoids special handling in stats counter.
2019-07-25 00:18:33 +01:00
Manuel Genovés 3e661b8d9d support https in the alt link markdown query 2019-07-25 00:18:33 +01:00
Manuel Genovés 300c386631 Added handling of alternate form of urls 2019-07-25 00:18:33 +01:00
Gonçalo Silva 7c3d4d9364 Adjust regex tests for CommonMark, improve inline regexp 2019-07-25 00:18:33 +01:00
Gonçalo Silva 859ad84524 Improve handling of bold italic
**_bolditalic_** and other mixed combinations now work.
2019-07-25 00:18:33 +01:00
Gonçalo Silva 7ea8f67216 Add code highlighting
Removes previously added indent. Reused for math.
2019-07-25 00:18:33 +01:00
Manuel Genovés adcb73b129 fix small regex errors in header queries 2019-07-25 00:18:07 +01:00
Manuel Genovés c8ea808623 fix math REGEX expression 2019-07-25 00:18:07 +01:00
Gonçalo Silva 55d82856c2 Fix list markup parsing
Subsequent list items were being erroneously discarded.
2019-07-25 00:16:26 +01:00
Gonçalo Silva 3f4f8292ca Use markup regexp for character count
Deferring to Pandoc is not without its faults. It still requires
processing (eg. horizontal rules turning into 72 dashes). It is
significantly slower and resource hungry.

On the reverse, the markup regexps have improved over time and are able
to handle the task.
2019-07-25 00:16:26 +01:00
Gonçalo Silva eec633437b Improve inline preview
- Uses commonly defined regexp
- Removed dependency on gnome-web-photo, use WebView instead
- Improved lexicon rendering
2019-07-25 00:16:26 +01:00
Gonçalo Silva 8e97b7ae2c Quality of life improvements for regexp
Includes:
* Moving them into an independent file
* Using named groups for clarity
* Support for multi-line list items
* Better handling of block markup at start / end of document (eg. hr)
* Better handling of the separation around block items (eg. space around a list)
2019-07-25 00:16:26 +01:00