class

Luce::EmojiSyntax

Inherits Luce::InlineSyntax < Reference < Object

Matches GitHub Markdown emoji syntax like :smile:.

There is no formal specification of GitHub's support for this colon-based emoji support, so this syntax is based on the results of Markdown-enabled text fields at github.com

Constructors

new

Emoji "aliases" are mostly limited to lower-case letters, numbers, and underscores, but GitHub also supports :+1: and :-1:.

Instance methods

on_match(parser : InlineParser, match : Regex::MatchData) : Bool

Processes match, adding nodes to parser and possibly advancing parser.

Will return whether the caller should advance parser by match[0].size.