Giter VIP home page Giter VIP logo

quaint-emoji's Introduction

quaint-emoji

Use emojis in your Quaint documents.

The svg/png emojis provided by quaint-emoji are the excellent ones designed by Emoji One.

Install

quaint --setup emoji

Follow the instructions.

Sample configuration

This configuration entry must be added in the plugins field of quaint.json:

"emoji": {
  "method": "svg",
  "fuzzy": true
}

Sample use

The :cat: is in the :top_hat:!

Rules

:name:

Inserts the emoji with the given name. This must be an exact match. You can search the codes here.

If the fuzzy options is enabled, quaint-emoji will search for some emoji that matches what you have written. For instance, there is no :tree: emoji, but with fuzzy enabled, you will still get something, like :evergreen_tree:.

!! name

Same as :name:.

Options

fuzzy

(default: false)

If true, if there is no emoji with the exact name you have given, quaint-emoji will search for one that has a name matching what you have written.

For instance, there is no :tree: emoji, but with fuzzy enabled, you will still get something, like :evergreen_tree:. If it's close enough to what you want, at least that saves some time searching ;)

To match :x:, fuzzy tries to find, in this order:

  1. An emoji that starts with x_
  2. An emoji that ends with _x
  3. An emoji that starts with x
  4. An emoji that ends with x

If there are multiple matches at one step, which one is picked is arbitrary and might change in a future version (but always towards a better match).

method

(default: "svg")

This option controls which emoji set to show, which image format to use, and can take the following values:

  • "svg": use svg icons from Emoji One (served through cdnjs)
  • "png": use png icons from Emoji One (served through cdnjs)
  • "unicode": insert unicode code points directly

operator

(default: "!!")

The prefix operator to use for emojis, or null.

quaint-emoji's People

Contributors

breuleux avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.