Skip to content

Instantly share code, notes, and snippets.

@niftylettuce
Created April 3, 2012 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save niftylettuce/53189727e2e9357b18fb to your computer and use it in GitHub Desktop.
Save niftylettuce/53189727e2e9357b18fb to your computer and use it in GitHub Desktop.
how can I get this to render properly using https://github.com/isaacs/github-flavored-markdown
do some stuff here
# this is supposed to be a comment

However the output using github-flavored-markdown is:


do some stuff here

this is supposed to be a comment

@timoxley
Copy link

timoxley commented Apr 3, 2012

do some stuff here
# this is supposed to be a comment

@niftylettuce
Copy link
Author

niftylettuce commented Apr 3, 2012 via email

@timoxley
Copy link

timoxley commented Apr 3, 2012

Can you post code that creates that?

For me:

var md = require('github-flavored-markdown')
var output = md.parse('```perl\n do some stuff here \n # this is supposed to be a comment \n ```')
console.log(output)

outputs:

<div class="highlight"><pre lang="perl"> do some stuff here 
 # this is supposed to be a comment 
 </pre></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment