extplug-chat-markup
ExtPlug plugin that applies some markdown/slack/reddit-like markup to chat messages.
Last updated 4 years ago by goto-bus-stop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install extplug-chat-markup 
SYNC missed versions from official npm registry.

Chat Markup

Applies some markdown/slack/reddit-like markup to chat messages.

Screenshot

Translations:

  • _italic_ becomes italic
  • *bold* becomes bold
  • `code` becomes code
  • ~strike~ becomes <strike>strike</strike>

Markup can be nested, so

  • _italic *bolddd*_ becomes italic bold
  • ~`error`~ becomes <strike>error</strike>

But markup does not nest inside code blocks, so

  • `a _line_ of code` becomes a _line_ of code
  • *a `code ~block~`* becomes a code ~block~

Also, markup does not apply when it starts halfway through a word, so

Basically, it attempts to do what you would expect.

Installation

If you do not have ExtPlug yet, get it here.

You can install this plugin by going to your ExtPlug settings menu, pressing "Install Plugin", and entering this Plugin URL:

https://extplug.github.io/chat-markup/build/chat-markup.js;extplug/chat-markup/main

Building

Note: this section is intended for developers only.

First, install dependencies:

npm install

Then, use:

npm run build

The plugin will be built using the ExtPlug CLI.

The built plugin will be stored at build/chat-markup.js.

License

MIT

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |