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.

Readme

Keywords

Package Sidebar

Install

npm i gulp-literate

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • wtfaremyinitials