{"_id":"color-marked","_rev":"26-77fd50e65be0298ed5eceaa22b872d4d","name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","dist-tags":{"latest":"0.3.3"},"versions":{"0.1.0":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.1.0","main":"./lib/marked.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"7.1.0","css-parse":"1.0.1","cheerio":"0.9.2"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"readme":"# marked\n- - -\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n# install\n- - -\n\n```bash\n$ git clone git@github.com:chemzqm/marked.git\n$ cd marked\n$ npm install\n```\n\n# example\n- - -\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n# For vim users\n- - -\nFor convert the file content of markdown into html and copy them to your system clipboard, you can make an alias in your `vimrc` file. For example, if you are using vim (like me) under terminal, you have to install a terminal tool `xclip` at first, in the debain system, you can do that like this:\n\n``` bash\n    sudo apt-get install xclip\n```\nThen add the code below to your vim profile, you can find it at `$HOME/.vimrc` \n\n``` viml\nnnoremap <leader>md :call Markdown()<CR>\nfunction! Markdown()\n   exe \"!cat \" . shellescape(expand('%:p'), 1) . \" | marked --gfm --color | xclip\"\nendfunction\n```\nNow, you can use command `<leader>md` to have the converted html contents directly copied into your system clipboard.\n\n# LICENSE\n- - -\nCopyright (c) 2011-2012, Christopher Jeffrey. (MIT License)\n\nSee LICENSE for more info.\n","_id":"color-marked@0.1.0","dist":{"shasum":"1680734047a4303efc1fe0b87054f29b11a1bfa6","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.1.0.tgz","integrity":"sha512-Dwu05AoQiRHRUFl97+SPdQWFhadpdOoDOQbMJsd3vLmoBNwyFRoRN2HEM01PO0sRq23o+VwJGYuGSb1bzzGGlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDui0OSWOHTZxOK/oqEJfCyG9Qgd5T7Y1QZ90tFuY7CWAIgBHT3q2Qa0/QKVrGzq9yk+4DUefii86MuoMyrny+Gjq8="}]},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.1.1":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.1.1","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"7.1.0","css-parse":"1.0.1","cheerio":"0.9.2"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"readme":"# marked\n- - -\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n# install\n- - -\n\n```bash\n$ git clone git@github.com:chemzqm/marked.git\n$ cd marked\n$ npm install\n```\n\n# example\n- - -\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n# For vim users\n- - -\nFor convert the file content of markdown into html and copy them to your system clipboard, you can make an alias in your `vimrc` file. For example, if you are using vim (like me) under terminal, you have to install a terminal tool `xclip` at first, in the debain system, you can do that like this:\n\n``` bash\n    sudo apt-get install xclip\n```\nThen add the code below to your vim profile, you can find it at `$HOME/.vimrc` \n\n``` viml\nnnoremap <leader>md :w !marked --gfm --color \\| xclip<cr>\n```\nNow, you can use command `<leader>md` to have the converted html contents directly copied into your system clipboard.\n\n# LICENSE\n- - -\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.1.1","dist":{"shasum":"dee2c5be095e0541dc4de97510bb828a53370a08","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.1.1.tgz","integrity":"sha512-q3Cg5aXUsZGroCSZ95wvQ2JUvP0UotNbNj9/00eMGov/fePZlR+2RfVE/vK/703dQ8pb9Lp8fCkGm2V0CCPhLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5fVk02hMVdTimNgTOcUIeWxGQOlqPOyYi8Ity4QglJAiEA9Zs1VrnrBF2GC2XMw6N4NugqFNqd9TGZVIRKEv0vYOQ="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.1.2":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.1.2","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"7.1.0","css-parse":"1.0.1","cheerio":"0.9.2"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n## install\n\n* from npm\n  ```bash\n  npm install -g color-marked\n  ```\n\n* from source code\n  ```bash\n  $ git clone git@github.com:chemzqm/marked.git\n  $ cd marked\n  $ npm install\n  ```\n\n## example\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n## Browser support\n\n* *No inline parse* in browser environment, import css file is required to display colors.\n* Import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n* Use function `marked(src, option)` for markdown converting.\n* Options `gfm` and `color` is enabled by default.\n\n## For vim users\n\nFor convert the file content of markdown into html and copy them to your system clipboard, you can make an alias in your `vimrc` file. For example, if you are using vim (like me) under terminal, you have to install a terminal tool `xclip` at first, in the debain system, you can do that like this:\n\n``` bash\n    sudo apt-get install xclip\n```\nThen add the code below to your vim profile, you can find it at `$HOME/.vimrc` \n\n``` viml\nnnoremap <leader>md :w !marked --gfm --color \\| xclip<cr>\n```\nNow, you can use command `<leader>md` to have the converted html contents directly copied into your system clipboard.\n\n## LICENSE\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.1.2","dist":{"shasum":"216a927641943119513ecd9b9dbbb216d10fea57","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.1.2.tgz","integrity":"sha512-tW/87hlE/O/IcdxuD2vxItqIjN4zG2ZRyIomhO8Y/fnb6OEIuKKB7lpFElvekze2wVL9B/HWUep6rqqWBp4GXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/wpUcfyxSORWx90Pa2YK8P6hbzWtgjoNohNmHEQv8WwIgJUQUvwHkdDmOrY02mRtLl9RK5I0QWZ7wT2NVG/h8cUM="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.1.3":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.1.3","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"7.1.0","css-parse":"1.0.1","cheerio":"0.9.2"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n## install\n\n* from npm\n  ```bash\n  npm install -g color-marked\n  ```\n\n* from source code\n  ```bash\n  $ git clone git@github.com:chemzqm/marked.git\n  $ cd marked\n  $ npm install\n  ```\n\n## example\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n## Browser support\n\n* *No inline parse* in browser environment, import css file is required to display colors.\n* Import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n* Use function `marked(src, option)` for markdown converting.\n* Options `gfm` and `color` is enabled by default.\n\n## For vim users\n\nFor convert the file content of markdown into html and copy them to your system clipboard, you can make an alias in your `vimrc` file. For example, if you are using vim (like me) under terminal, you have to install a terminal tool `xclip` at first, in the debain system, you can do that like this:\n\n``` bash\n    sudo apt-get install xclip\n```\nThen add the code below to your vim profile, you can find it at `$HOME/.vimrc` \n\n``` viml\nnnoremap <leader>md :w !marked --gfm --color \\| xclip<cr>\n```\nNow, you can use command `<leader>md` to have the converted html contents directly copied into your system clipboard.\n\n## LICENSE\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.1.3","dist":{"shasum":"ffc9fc80254f10d65a9c6ae345c30657aae4cde7","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.1.3.tgz","integrity":"sha512-lmOEZNXXtHBQXkCRy4saysftAyvtNeBZXuOcScosNSLEq6stmt39qaFwoip+B6eA80s6N7miQ6uLt4gtXIUY1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP5in0l+5XqLsUZGvz8fQVWsVIsdHsHJwIMW6dqe4KkQIgKDhQZKv6U0LGrllRTYRBIT2c9fcWzm/0BKxG+TOnBTE="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.1.4":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.1.4","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"7.1.0","css-parse":"1.0.1","cheerio":"0.9.2"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n## install\n\n* from npm\n  ```bash\n  npm install -g color-marked\n  ```\n\n* from source code\n  ```bash\n  $ git clone git@github.com:chemzqm/marked.git\n  $ cd marked\n  $ npm install\n  ```\n\n## example\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n## Browser support\n\n* *No inline parse* in browser environment, import css file is required to display colors.\n* Import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n* Use function `marked(src, option)` for markdown converting.\n* Options `gfm` and `color` is enabled by default.\n\n## For vim users\n\nFor convert the file content of markdown into html and copy them to your system clipboard, you can make an alias in your `vimrc` file. For example, if you are using vim (like me) under terminal, you have to install a terminal tool `xclip` at first, in the debain system, you can do that like this:\n\n``` bash\n    sudo apt-get install xclip\n```\nThen add the code below to your vim profile, you can find it at `$HOME/.vimrc` \n\n``` viml\nnnoremap <leader>md :w !marked --gfm --color \\| xclip<cr>\n```\nNow, you can use command `<leader>md` to have the converted html contents directly copied into your system clipboard.\n\n## LICENSE\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.1.4","dist":{"shasum":"fbe232a8750f6c2549f372f12f5a8f2cdbec993a","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.1.4.tgz","integrity":"sha512-TdNkGCtlxRmh76BXuIkX7tSZLQNrxCwtrUroj8mpOc+SvSSvBoTwdo6zJMdMmGHY/9BQcbUff9oBYD29gih/hA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXcXkalIODTKnZ6ZiFRhfB9Rfo3PCCXIdck6958NTusAIgVc2tgrZNPF3UOfXLKKcc64ot6nLqnEnEZNanJdpuBGI="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.2.0":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.2.0","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"7.1.0","css-parse":"1.0.1","cheerio":"0.9.2"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"scripts":{"test":"node test","bench":"node test --bench"},"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n## install\n\n* from npm\n  ```bash\n  npm install -g color-marked\n  ```\n\n* from source code\n  ```bash\n  $ git clone git@github.com:chemzqm/marked.git\n  $ cd marked\n  $ npm install\n  ```\n\n## Usage\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n## Browser support\n\n* *No inline parse* in browser environment, import css file is required to display colors.\n* Import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n* Use function `marked(src, option)` for markdown converting.\n* Options `gfm` and `color` is enabled by default.\n\nmarked has a few different switches which change behavior.\n\n- __pedantic__: Conform to obscure parts of `markdown.pl` as much as possible.\n  Don't fix any of the original markdown bugs or poor behavior.\n- __gfm__: Enable github flavored markdown (enabled by default).\n- __sanitize__: Sanitize the output. Ignore any HTML that has been input.\n- __highlight__: A callback to highlight code blocks.\n- __tables__: Enable GFM tables. This is enabled by default. (Requires the\n  `gfm` option in order to be enabled).\n- __breaks__: Enable GFM line breaks. Disabled by default.\n- __smartLists__: Use smarter list behavior than the original markdown.\n  Disabled by default. May eventually be default with the old behavior\n  moved into `pedantic`.\n- __langPrefix__: Set the prefix for code block classes. Defaults to `lang-`.\n\n## LICENSE\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.2.0","dist":{"shasum":"4596741d3c20b6849590f7eaec78d5a71e63c15a","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.2.0.tgz","integrity":"sha512-cjgeahCpno+Pxp6XhC9cye6Tb4b6PsaN6E8JZCl6s38E3FgV/a+uTG19SoAGba//gWN+9MojRfvJWW574gytmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjoP4yCmqMFsFN7gWaBjC+fmc4e1OIc7Q6ODuZKSE3ywIgOSrdIBHxCmhxLg4tlfbFpR6sMwmpRBxbJzmS1GAAZ3I="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.3.0":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.3.0","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"~7.3.0","css-parse":"~1.2.0","cheerio":"~0.10.8"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"devDependencies":{"markdown":"*","showdown":"*","robotskirt":"*"},"scripts":{"test":"node test","bench":"node test --bench"},"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n## install\n\n* from npm\n  ```bash\n  npm install -g color-marked\n  ```\n\n* from source code\n  ```bash\n  $ git clone git@github.com:chemzqm/marked.git\n  $ cd marked\n  $ npm install\n  ```\n\n## Usage\n\n```bash\n$ cat gfm_code.text \n\n<<<<<<< .merge_file_oYFd59\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n=======\nnode v0.8.x\n\n``` bash\n$ node test --bench\nmarked completed in 3411ms.\nmarked (gfm) completed in 3727ms.\nmarked (pedantic) completed in 3201ms.\nrobotskirt completed in 808ms.\nshowdown (reuse converter) completed in 11954ms.\nshowdown (new converter) completed in 17774ms.\nmarkdown-js completed in 17191ms.\n```\n\n## Install\n>>>>>>> .merge_file_XVIES6\n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n## Browser support\n\n* *No inline parse* in browser environment, import css file is required to display colors.\n* Import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n* Use function `marked(src, option)` for markdown converting.\n* Options `gfm` and `color` is enabled by default.\n\n<<<<<<< .merge_file_oYFd59\n=======\nAlong with implementing every markdown feature, marked also implements\n[GFM features](http://github.github.com/github-flavored-markdown/).\n\n## Options\n\n>>>>>>> .merge_file_XVIES6\nmarked has a few different switches which change behavior.\n\n- __pedantic__: Conform to obscure parts of `markdown.pl` as much as possible.\n  Don't fix any of the original markdown bugs or poor behavior.\n- __gfm__: Enable github flavored markdown (enabled by default).\n- __sanitize__: Sanitize the output. Ignore any HTML that has been input.\n- __highlight__: A callback to highlight code blocks.\n- __tables__: Enable GFM tables. This is enabled by default. (Requires the\n  `gfm` option in order to be enabled).\n- __breaks__: Enable GFM line breaks. Disabled by default.\n- __smartLists__: Use smarter list behavior than the original markdown.\n  Disabled by default. May eventually be default with the old behavior\n  moved into `pedantic`.\n- __langPrefix__: Set the prefix for code block classes. Defaults to `lang-`.\n\n<<<<<<< .merge_file_oYFd59\n## LICENSE\n=======\n## Usage\n\n``` js\n// Set default options\nmarked.setOptions({\n  gfm: true,\n  tables: true,\n  breaks: false,\n  pedantic: false,\n  sanitize: true,\n  smartLists: true,\n  langPrefix: 'language-',\n  highlight: function(code, lang) {\n    if (lang === 'js') {\n      return highlighter.javascript(code);\n    }\n    return code;\n  }\n});\nconsole.log(marked('i am using __markdown__.'));\n```\n\nYou also have direct access to the lexer and parser if you so desire.\n\n``` js\nvar tokens = marked.lexer(text, options);\nconsole.log(marked.parser(tokens));\n```\n\n``` js\nvar lexer = new marked.Lexer(options);\nvar tokens = lexer.lex(text);\nconsole.log(tokens);\nconsole.log(lexer.rules);\n```\n\n``` bash\n$ node\n> require('marked').lexer('> i am using marked.')\n[ { type: 'blockquote_start' },\n  { type: 'paragraph',\n    text: 'i am using marked.' },\n  { type: 'blockquote_end' },\n  links: {} ]\n```\n\n## CLI\n\n``` bash\n$ marked -o hello.html\nhello world\n^D\n$ cat hello.html\n<p>hello world</p>\n```\n\n## License\n\nCopyright (c) 2011-2013, Christopher Jeffrey. (MIT License)\n>>>>>>> .merge_file_XVIES6\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.3.0","dist":{"shasum":"d16062b925e3471bca421373829fb7b4e1438179","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.3.0.tgz","integrity":"sha512-uVLhxGW7nyVb0edp8PKpc7mBoG+vf9rGz86jUUA3OTZGsqqyFtvYPchvMVjB8Kbwu/pPplT15FS1uLJatK1F6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0tp9glqtqCyb/JgfcTJlEEjT6bCNL9sRCekTqQA8q9AiAau9UuBBzF9GvlQK3zOjtRb0GcoEyjjoA7i9xv6En4Mw=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.3.1":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.3.1","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"~7.3.0","css-parse":"~1.2.0","cheerio":"~0.10.8"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"devDependencies":{"markdown":"*","showdown":"*","robotskirt":"*"},"scripts":{"test":"node test","bench":"node test --bench"},"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n## install\n\n* from npm\n  ```bash\n  npm install -g color-marked\n  ```\n\n* from source code\n  ```bash\n  $ git clone git@github.com:chemzqm/marked.git\n  $ cd marked\n  $ npm install\n  ```\n\n## Command line Usage\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code style=\"display:block;padding:0.5em;color:#333;background:#f8f8ff;\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre>\n\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n## Browser support\n\n* color is disabed in browser environment, import css file is required to display colors.\n* When used in browser, import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n* Use function `marked(src, option)` for markdown converting.\n* `color` option is enabled by default in none browser environment.\n\n\n## Options\n\nmarked has a few different switches which change behavior.\n\n- __pedantic__: Conform to obscure parts of `markdown.pl` as much as possible.\n  Don't fix any of the original markdown bugs or poor behavior.\n- __gfm__: Enable github flavored markdown (enabled by default).\n- __sanitize__: Sanitize the output. Ignore any HTML that has been input.\n- __highlight__: A callback to highlight code blocks.\n- __tables__: Enable GFM tables. This is enabled by default. (Requires the\n  `gfm` option in order to be enabled).\n- __breaks__: Enable GFM line breaks. Disabled by default.\n- __smartLists__: Use smarter list behavior than the original markdown.\n  Disabled by default. May eventually be default with the old behavior\n  moved into `pedantic`.\n- __langPrefix__: Set the prefix for code block classes. Defaults to `language-`.\n- __color__: Parse style.css file and add the styles to highlight block\n- __smartypants__: Use \"smart\" typograhic punctuation for things like quotes\n  and dashes.\n- __langPrefix__: Set the prefix for code block classes. Defaults to `lang-`.\n\n## Javascript API usage\n\n``` js\n// Set default options\nmarked.setOptions({\n  gfm: true,\n  tables: true,\n  breaks: false,\n  pedantic: false,\n  sanitize: true,\n  smartLists: true,\n  smartypants: false,\n  langPrefix: 'language-',\n  highlight: function(code, lang) {\n    if (lang === 'js') {\n      return highlighter.javascript(code);\n    }\n    return code;\n  }\n});\nconsole.log(marked('i am using __markdown__.'));\n```\n\nYou also have direct access to the lexer and parser if you so desire.\n\n``` js\nvar tokens = marked.lexer(text, options);\nconsole.log(marked.parser(tokens));\n```\n\n``` js\nvar lexer = new marked.Lexer(options);\nvar tokens = lexer.lex(text);\nconsole.log(tokens);\nconsole.log(lexer.rules);\n```\n\n``` bash\n$ node\n> require('marked').lexer('> i am using marked.')\n[ { type: 'blockquote_start' },\n  { type: 'paragraph',\n    text: 'i am using marked.' },\n  { type: 'blockquote_end' },\n  links: {} ]\n```\n\n## License\n\nCopyright (c) 2011-2013, Qiming Zhao. (MIT License)\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.3.1","dist":{"shasum":"94e7c9700efbe3621d0b69744bc109ff1d4d725b","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.3.1.tgz","integrity":"sha512-AxP6cByLXNjBNzLIbCudbIDrmufbgjBzU/HZ7NqichE2I6HF1gHMfiiyLTRM2x7HzXc4NTuDMok7E/Z13F7XfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICiLdPOlEXle6ksLdlV1bO3ZGs0psCJZgl/+i/RrOiV8AiAI6POj0v+PJsoqkH+zB6TyWu1ABny9dYrN2l/hzKv1gg=="}]},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.3.2":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.3.2","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"~7.3.0","css-parse":"~1.2.0","cheerio":"~0.10.8"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"devDependencies":{"markdown":"*","showdown":"*","robotskirt":"*"},"scripts":{"test":"node test","bench":"node test --bench"},"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n## Options\n\nSee [orignal README](https://github.com/chjj/marked) to get understand of most options.\n\nAddtional options include `color` and `colorscheme`\n\n* `color` parse the css file and add inline color for the code element.\n\n* `colorscheme` which colorscheme to use, see [highlight.js demo](http://softwaremaniacs.org/media/soft/highlight/test.html) to get all the colorschemes and supported languages.\n\n* The value of `langPrefix` was changed to `language-`\n\n## Browser support\n\n* import css file is required to display colors.\n\n* When used in browser, import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n\n* Use function `marked(src, option)` for markdown converting.\n\n## Javascript API usage\n\n``` js\n// Set default options\nmarked.setOptions({\n  gfm: true,\n  tables: true,\n  breaks: false,\n  pedantic: false,\n  sanitize: true,\n  smartLists: true,\n  smartypants: false,\n  langPrefix: 'language-',\n  highlight: function(code, lang) {\n    if (lang === 'js') {\n      return highlighter.javascript(code);\n    }\n    return code;\n  }\n});\nconsole.log(marked('i am using __markdown__.'));\n```\n\nYou also have direct access to the lexer and parser if you so desire.\n\n``` js\nvar tokens = marked.lexer(text, options);\nconsole.log(marked.parser(tokens));\n```\n\n``` js\nvar lexer = new marked.Lexer(options);\nvar tokens = lexer.lex(text);\nconsole.log(tokens);\nconsole.log(lexer.rules);\n```\n\n\n``` bash\n$ node\n> require('marked').lexer('> i am using marked.')\n[ { type: 'blockquote_start' },\n  { type: 'paragraph',\n    text: 'i am using marked.' },\n  { type: 'blockquote_end' },\n  links: {} ]\n```\n\n## Running Tests & Contributing\n\nIf you want to submit a pull request, make sure your changes pass the test\nsuite. If you're adding a new feature, be sure to add your own test.\n\nThe marked test suite is set up slightly strangely: `test/new` is for all tests\nthat are not part of the original markdown.pl test suite (this is where your\ntest should go if you make one). `test/original` is only for the original\nmarkdown.pl tests. `test/tests` houses both types of tests after they have been\ncombined and moved/generated by running `node test --fix` or `marked --test\n--fix`.\n\nIn other words, if you have a test to add, add it to `test/new/` and then\nregenerate the tests with `node test --fix`. Commit the result. If your test\nuses a certain feature, for example, maybe it assumes GFM is *not* enabled, you\ncan add `.nogfm` to the filename. So, `my-test.text` becomes\n`my-test.nogfm.text`. You can do this with any marked option. Say you want\nline breaks and smartypants enabled, your filename should be:\n`my-test.breaks.smartypants.text`.\n\nTo run the tests:\n\n``` bash\ncd marked/\nnode test\n```\n\n### Contribution and License Agreement\n\nIf you contribute code to marked, you are implicitly allowing your code to be\ndistributed under the MIT license. You are also implicitly verifying that all\ncode is your original work. `</legalese>`\n\n### License\n\nCopyright (c) 2011-2013, Qiming Zhao. (MIT License)\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.3.2","dist":{"shasum":"c41c5c36aad97545e073d5dc26aa5538fe629b84","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.3.2.tgz","integrity":"sha512-CscA4LSRlfo/6gYrdZFI6MbjQ/4Qongr8S+WjyZuBChtFhpHHMCyVVDnED8PBY4TDUSvjxJYJDEkiACNYsSjFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/T+OeZ4mZUj76cyGv91f7SCmtzVTcY3jDo6EZ9bAe9AiBjvDIrkhAvQWn9eOYbgSBWMPVbyD4m/ERZgkieht0Waw=="}]},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]},"0.3.3":{"name":"color-marked","description":"markdown parser with highlight and inline code style support, useful for writing email with markdown","author":{"name":"qiming zhao"},"version":"0.3.3","main":"./index.js","bin":{"color-marked":"./bin/marked"},"man":["./man/marked.1"],"preferGlobal":false,"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"homepage":"https://github.com/chemzqm/marked","bugs":{"url":"http://github.com/chemzqm/marked/issues"},"dependencies":{"highlight.js":"~7.3.0","css-parse":"~1.2.0","cheerio":"~0.10.8"},"keywords":["markdown","markup","html","highlight","email"],"tags":["markdown","markup","html"],"devDependencies":{"markdown":"*","showdown":"*","robotskirt":"*"},"scripts":{"test":"node test","bench":"node test --bench"},"readme":"# marked\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n## Options\n\nSee [orignal README](https://github.com/chjj/marked) to get understand of most options.\n\nAddtional options include `color` and `colorscheme`\n\n* `color` parse the css file and add inline color for the code element.\n\n* `colorscheme` which colorscheme to use, see [highlight.js demo](http://softwaremaniacs.org/media/soft/highlight/test.html) to get all the colorschemes and supported languages.\n\n* The value of `langPrefix` was changed to `language-`\n\n## Browser support\n\n* import css file is required to display colors.\n\n* When used in browser, import highlight.js file before marked.js file and make sure function `window.hljs` is availabel for converting.\n\n* Use function `marked(src, option)` for markdown converting.\n\n## Component support\n\nInstall by using [component](https://github.com/component/component) command.\n\nSyntax highlight is enable by default, default colorscheme is `solarized_light`.\n\n    component install chemzqm/marked\n\n**Usage Example:**\n\n``` js\nvar marked = require('marked');\nconsole.log(marked('**This** is marked for [component](http://component.io/)'));\n```\n\n[demo](http://chemzqm.github.io/marked/index.html)\n\n## Javascript API usage\n\n``` js\n// Set default options\nmarked.setOptions({\n  gfm: true,\n  tables: true,\n  breaks: false,\n  pedantic: false,\n  sanitize: true,\n  smartLists: true,\n  smartypants: false,\n  langPrefix: 'language-',\n  highlight: function(code, lang) {\n    if (lang === 'js') {\n      return highlighter.javascript(code);\n    }\n    return code;\n  }\n});\nconsole.log(marked('i am using __markdown__.'));\n```\n\nYou also have direct access to the lexer and parser if you so desire.\n\n``` js\nvar tokens = marked.lexer(text, options);\nconsole.log(marked.parser(tokens));\n```\n\n``` js\nvar lexer = new marked.Lexer(options);\nvar tokens = lexer.lex(text);\nconsole.log(tokens);\nconsole.log(lexer.rules);\n```\n\n\n``` bash\n$ node\n> require('marked').lexer('> i am using marked.')\n[ { type: 'blockquote_start' },\n  { type: 'paragraph',\n    text: 'i am using marked.' },\n  { type: 'blockquote_end' },\n  links: {} ]\n```\n\n## Running Tests & Contributing\n\nIf you want to submit a pull request, make sure your changes pass the test\nsuite. If you're adding a new feature, be sure to add your own test.\n\nThe marked test suite is set up slightly strangely: `test/new` is for all tests\nthat are not part of the original markdown.pl test suite (this is where your\ntest should go if you make one). `test/original` is only for the original\nmarkdown.pl tests. `test/tests` houses both types of tests after they have been\ncombined and moved/generated by running `node test --fix` or `marked --test\n--fix`.\n\nIn other words, if you have a test to add, add it to `test/new/` and then\nregenerate the tests with `node test --fix`. Commit the result. If your test\nuses a certain feature, for example, maybe it assumes GFM is *not* enabled, you\ncan add `.nogfm` to the filename. So, `my-test.text` becomes\n`my-test.nogfm.text`. You can do this with any marked option. Say you want\nline breaks and smartypants enabled, your filename should be:\n`my-test.breaks.smartypants.text`.\n\nTo run the tests:\n\n``` bash\ncd marked/\nnode test\n```\n\n### Contribution and License Agreement\n\nIf you contribute code to marked, you are implicitly allowing your code to be\ndistributed under the MIT license. You are also implicitly verifying that all\ncode is your original work. `</legalese>`\n\n### License\n\nCopyright (c) 2011-2013, Qiming Zhao. (MIT License)\n\nMIT\n","readmeFilename":"README.md","_id":"color-marked@0.3.3","dist":{"shasum":"c84cf414805d5cddf5a4fb72b2a5ebae36df43de","tarball":"https://registry.npmjs.org/color-marked/-/color-marked-0.3.3.tgz","integrity":"sha512-1m+B03ylkzKgJPsd+IrE7+OaxTrhHDEZrkGX8M/DgHd+9cMpe1KogrMO3wQTL1GCFSHTXIH0xf+GS31boHbjEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGH4tqSuASrz67q0kaa2DddevinZWYb/V5txxmmRiWH7AiBPgweUviacVn5NmSqo5NRvyuG0b/2lz2eU2ZfFWhyhgg=="}]},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"chemzqm","email":"chemzqm@gmail.com"},"maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}]}},"readme":"# marked\n- - -\n\nMarkdown parser with code hightlight form [highlight.js](https://github.com/isagalaev/highlight.js) and optional inline color support. It could be useful when you want to colorful your code in your email.\n\nI'm using [css-parse](https://github.com/visionmedia/node-css-parse) to parse the style file and [cheerio](https://github.com/MatthewMueller/cheerio) to add the inline style.\n\n# install\n- - -\n\n```bash\n$ git clone git@github.com:chemzqm/marked.git\n$ cd marked\n$ npm install\n```\n\n# example\n- - -\n\n```bash\n$ cat gfm_code.text \n\n``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n`` \n\n$ marked --gfm --color gfm_code.text \n<pre><code class=\"language-js\"><span class=\"keyword\" style=\"color:#333;font-weight:bold;\">var</span> a = <span class=\"string\" style=\"color:#d14;\">'hello'</span>;\nconsole.log(a + <span class=\"string\" style=\"color:#d14;\">' world'</span>);</code></pre></span></span></span></code></pre>\n```\nGet more information from [marked](https://github.com/chjj/marked)\n\n# For vim users\n- - -\nFor convert the file content of markdown into html and copy them to your system clipboard, you can make an alias in your `vimrc` file. For example, if you are using vim (like me) under terminal, you have to install a terminal tool `xclip` at first, in the debain system, you can do that like this:\n\n``` bash\n    sudo apt-get install xclip\n```\nThen add the code below to your vim profile, you can find it at `$HOME/.vimrc` \n\n``` viml\nnnoremap <leader>md :call Markdown()<CR>\nfunction! Markdown()\n   exe \"!cat \" . shellescape(expand('%:p'), 1) . \" | marked --gfm --color | xclip\"\nendfunction\n```\nNow, you can use command `<leader>md` to have the converted html contents directly copied into your system clipboard.\n\n# LICENSE\n- - -\nCopyright (c) 2011-2012, Christopher Jeffrey. (MIT License)\n\nSee LICENSE for more info.\n","maintainers":[{"name":"chemzqm","email":"chemzqm@gmail.com"}],"time":{"modified":"2022-06-13T06:31:18.951Z","created":"2012-09-02T09:16:29.268Z","0.1.0":"2012-09-02T09:16:36.799Z","0.1.1":"2012-11-26T06:49:51.497Z","0.1.2":"2012-11-26T09:25:58.456Z","0.1.3":"2012-11-26T10:05:53.908Z","0.1.4":"2012-11-26T10:28:46.515Z","0.2.0":"2013-02-04T04:04:23.658Z","0.3.0":"2013-04-20T16:03:42.794Z","0.3.1":"2013-06-21T10:44:33.505Z","0.3.2":"2013-09-11T06:45:42.968Z","0.3.3":"2013-09-11T10:09:33.227Z"},"author":{"name":"qiming zhao"},"repository":{"type":"git","url":"git@github.com:chemzqm/marked.git"},"users":{"ajnasz":true}}