Skip to content

Custom regex, syntax support for links

Compare
Choose a tag to compare
@ruddfawcett ruddfawcett released this 18 Oct 03:17
· 100 commits to master since this release

This release adds support for URLs and images:

A url: [url](http://url.com), and an image: ![image description](http://image.com/image.png)

This release also adds the ability to write custom regex highlighting rules for your theme. For example, you can add one that highlights Twitter handles (and obviously much more):

"handle": {
    "regex": "[@@][a-zA-Z0-9_]{1,20}",
    "color": "#78ddd5"
}

Enjoy.