0.1.2 • Published 6 years ago

turndown-ssml v0.1.2

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

Turndown SSML

A Turndown plugin to convert SSML into markdown files, useful for bots that utilize both voice and text chat

Installation

NPM

    npm i --save turndown-ssml

Yarn

    yarn add turndown-ssml

Usage

Node

    const turndownSsmlPlugin = require('turndown-ssml');
    turndownService.use(turndownSsmlPlugin.ssml);

ES6+

    import turndownSsmlPlugin from 'turndown-ssml';
    turndownService.use(turndownSsmlPlugin.ssml);

Tag support

  • speak - Replaced with nothing
  • s - Adds a new line before and after content
  • break - Depending on strength attribute replaces with nothing, a comma, or ellipsis

If there is a tag not yet supported it just means we haven't got around to adding an implementation yet. Contributions and maintainers welcome.