Nurturing Pluto's Martians

    This package has been deprecated

    Author message:

    This package has been deprecated. Please find this package under its new name @cloudflare/util-markdown.

    cf-util-markdown

    3.3.0 • Public • Published

    cf-util-markdown

    Cloudflare Markdown Util

    This utility library is a simple interface that hides away the markdown implementation being used so that it can easily be swapped out for something else.

    Installation

    $ npm install cf-util-markdown

    Usage

    import markdown from 'cf-util-markdown';
     
    markdown('# Hello World');
    // >> <h1>Hello World</h1>

    If for some crazy crazy crazy reason you need to stop the markdown from being sanitized you may do the following:

    WARNING: Be extremely careful about XSS vulnerabilities when doing this!

    markdown('<h1>Hello World</h1>', { __dangerouslyDontSanitizeMarkdown: true });

    Keywords

    none

    Install

    npm i cf-util-markdown

    DownloadsWeekly Downloads

    3

    Version

    3.3.0

    License

    BSD-3-Clause

    Unpacked Size

    4.35 kB

    Total Files

    7

    Last publish

    Collaborators

    • trevorcf
    • g4brym
    • snigdha34
    • wrangler-publisher
    • marksteyn
    • chiminator
    • sgoodhew_cf
    • terinjokes
    • third774
    • evanderkoogh
    • jsteinberger
    • jasnell
    • kkoenig
    • asapzacy
    • pcostanzo
    • gregbrimble
    • geelen
    • jgentes
    • rexscaria
    • dcruz_cf
    • xuranwang
    • jculvey
    • sejoker
    • caass
    • vasturiano
    • cf-ci-write
    • segments-write
    • thibmeu
    • xortive
    • gurjinder
    • cf-ci2
    • lvalenta
    • worenga