Wondering what’s next for npm?Check out our public roadmap! »

    gulp-literate

    0.0.3 • Public • Published

    gulp-literate

    Version Downloads

    Markdown files that happen to contain source code

    Install

    $ npm install --save-dev gulp-literate

    Example

    main.lit.js

    # Hello World App
    This app prints the string "Hello World".
    Isn't that **so cool**?
    
        console.log('Hello World!');
    

    main.lit.js compiles with gulp-literate to

    main.js

    console.log('Hello World!');

    main.lit.js compiles with gulp-markdown to

    main.html

    <h1 id="hello-world-app">Hello World App</h1>
    <p>This app prints the string "Hello World". Isn't that **so cool**?</p>
    <pre><code>console.log(&#39;Hello World!&#39;);</code></pre>
    

    which, in a browser, looks like

    preview

    The gulpfile for this example can be found here.

    Install

    npm i gulp-literate

    DownloadsWeekly Downloads

    0

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • avatar