gitter-markdown-processor

21.0.0 • Public • Published

gitter-markdown-processor

Processes Gitter markdown messages and returns html with metadata.

var processor = new Processor();

processor.process('Can someone look at #12?', function(err, result) {
  console.log(result);
  /*
   * {
   *   html: 'Can someone look at <span data-link-type="issue" data-issue="12" class="issue">#12</span>?',
   *   urls: [],
   *   mentions: [],
   *   issues: [ { number: '12' } ]
   * }
   */
});

processor.shutdown(function(err) {
  if(err) console.error('Uh oh, you should check for leftover processes', err);
});

Versioning

In order to make versioning of messages easier, any change to the output of processor.process() is a breaking change. This means that under semver, we will release a new major version.

Its also why the first public release of this module is version 7.0.0.

Package Sidebar

Install

npm i gitter-markdown-processor

Weekly Downloads

13

Version

21.0.0

License

MIT

Unpacked Size

46.8 kB

Total Files

40

Last publish

Collaborators

  • mlm
  • andrewnewdigate
  • suprememoocow
  • viktomas