turndown-ssml

    0.1.2 • Public • Published

    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.

    Install

    npm i turndown-ssml

    DownloadsWeekly Downloads

    4

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    5.33 kB

    Total Files

    6

    Last publish

    Collaborators

    • truemedia